def get_session(autocommit=True, expire_on_commit=False):
    facade = _create_facade_lazily()
    session = facade.get_session(autocommit=autocommit,
                                 expire_on_commit=expire_on_commit)

    # if --verbose was specified, turn on SQL logging
    # note that this is done after the session has been initialized so that
    # we can override the default sqlalchemy logging
    if CONF.get('verbose', False):
        logging.basicConfig()
        logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)

    return session
method PUT not allowed
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_session--crossover with--dataset/ETHPy150Open scieloorg/scielo-manager/scielomanager/api/tests_resources_v2.py/RoleTypeRestAPITest.test_put_data