@contextmanager
def session_scope(engine):
    Session.configure(bind=engine)
    session = Session()
    try:
        yield session
        session.commit()
    except:
        session.rollback()
        raise
    finally:
        session.close()
Handles the url_map generation based on the rules from the base classes
dataset/ETHPy150Open jaysw/ipydb/ipydb/metadata/__init__.py/session_scope--crossover with--dataset/ETHPy150Open lvieirajr/mongorest/mongorest/resource.py/ResourceMeta.__new__