human
I wrote the below code

    @app.task(bind=True, name=u'celery.accumulate', shared=False, lazy=False)
    def accumulate(self, *args, **kwargs):
        index = kwargs.get(u'index')
        return (args[index] if (index is not None) else args)
    return accumulate

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

@connect_on_app_finalize
def add_accumulate_task(app):