

def get_metadata_engine(other_engine):
    'Create and return an SA engine for which will be used for\n    storing ipydb db metadata about the input engine.\n\n    Args:\n        other_engine - SA engine for which we will be storing metadata for.\n    Returns:\n        tuple (dbname, sa_engine). dbname is a unique key for the input\n        other_engine. sa_engine is the SA engine that will be used for storing\n        metadata about `other_engine`\n    '
    path = os.path.join(locate_profile(), 'ipydb')
    if (not os.path.exists(path)):
        os.makedirs(path)
    dbfilename = get_db_filename(other_engine)
    dburl = ('sqlite:////%s' % os.path.join(path, dburl))
    return (dbfilename, sa.create_engine(dburl))

dataset/ETHPy150Open jaysw/ipydb/ipydb/metadata/__init__.py get_metadata_engine/VarMisuse@70/249 `dbfilename`->`dburl`