def before_insert(self, mapper, connection, instance):

        return EXT_CONTINUE
Receive an object instance before that instance is inserted
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/orm/deprecated_interfaces.py/MapperExtension.before_insert