def _data_cluster_add(cluster_name, type):
    """
     :return name, db_type, and memory_location to be used as arguments in
    OrientDB.orientdb_client._data_cluster_add(cluster_name, cluster_type)
    """
    cluster_dict = {'physical': pyorient.CLUSTER_TYPE_PHYSICAL, 'memory': pyorient.CLUSTER_TYPE_MEMORY}
    if type in cluster_dict:
        return cluster_name, cluster_dict[type]
    else:
        raise Exception("invalid argument provided to data_cluster_add")
dataset/ETHPy150Open calthoff/flask-orientdb/flask_orientdb.py/_data_cluster_add/original