def before_flush(self, session, flush_context, instances):
Execute before flush process has started.
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/orm/deprecated_interfaces.py/SessionExtension.before_flush