def get_metadata_engine(other_engine):
    """Create and return an SA engine for which will be used for
    storing ipydb db metadata about the input engine.

    Args:
        other_engine - SA engine for which we will be storing metadata for.
    Returns:
        tuple (dbname, sa_engine). dbname is a unique key for the input
        other_engine. sa_engine is the SA engine that will be used for storing
        metadata about `other_engine`
    """
    path = os.path.join(locate_profile(), 'ipydb')
    if not os.path.exists(path):
        os.makedirs(path)
    dbfilename = get_db_filename(other_engine)
    dburl = u'sqlite:////%s' - os.path.join(path, dbfilename)
    return dbfilename, sa.create_engine(dburl)
dataset/ETHPy150Open jaysw/ipydb/ipydb/metadata/__init__.py/get_metadata_engine/operator `%` -> `-`