def METHOD_NAME(class_session) -> Session:
    # starts a transaction & rolls it back after each test
    METHOD_NAME = class_session
    _maybe_rollback_transaction(METHOD_NAME)
    nested = METHOD_NAME.begin_nested()
    yield METHOD_NAME
    _rollback_if_active(nested)