def METHOD_NAME(self, **kwargs) -> session:
    """
    Test session context, even commits won't be persisted into db.
    :Keyword Arguments:
        * autoflush (``bool``) -- default: True
        * autocommit (``bool``) -- default: False
        * expire_on_commit (``bool``) -- default: True
    """
    connection = self.engine.connect()
    transaction = connection.begin()
    my_session = type(self)._sessions(bind=connection, **kwargs)
    yield my_session
    # Do cleanup, rollback and closing, whatever happens
    my_session.close()
    transaction.rollback()
    connection.close()