def flush(self, objects=None):

        if self._flushing:
            raise sa_exc.InvalidRequestError("Session is already flushing")

        if self._is_clean():
            return
        try:
            self._flushing = True
            self._flush(objects)
        finally:
            self._flushing = False
TODO(user): Should be completed.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/session.py/Session.flush--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/mac/models/base_test.py/BaseManifestModificationTest.testGenerateInstance