def METHOD_NAME(isolation_level=None):
    session = Session(get_engine(isolation_level=isolation_level), future=True)
    try:
        yield session
        session.commit()
    except:
        session.rollback()
        raise
    finally:
        session.close()