human
Here's a good function header given the following:
I wrote the below code

    @wraps(func)
    @defer.inlineCallbacks
    def f(self, *args, **kwargs):
        try:
            res = (yield func(self, *args, **kwargs))
        except self.database_engine.module.IntegrityError:
            logger.exception('IntegrityError,    retrying.')
            res = (yield func(self, delete_existing=True, *args, **kwargs))
        defer.returnValue(res)
    return f

What's a good function header?
assistant
#Here's a good function header.

def _retry_on_integrity_error(func):