human
I wrote the below code

    @functools.wraps(f)
    def wrapper(*args, **kwargs):
        '\n                                if    request.args.get(\'confirmed\')    ==    "true":\n                                                dag_id    =    request.args.get(\'dag_id\')\n                                                task_id    =    request.args.get(\'task_id\')\n                                                dagbag    =    models.DagBag(settings.DAGS_FOLDER)\n                                                dag    =    dagbag.get_dag(dag_id)\n                                                task    =    dag.get_task(task_id)\n\n                                                if    current_user    and    hasattr(current_user,    \'username\'):\n                                                                user    =    current_user.username\n                                                else:\n                                                                user    =    \'anonymous\'\n\n                                                if    task.owner    !=    user:\n                                                                subject    =    (\n                                                                                \'Actions    taken    on    DAG    {0}    by    {1}\'.format(\n                                                                                                dag_id,    user))\n                                                                items    =    request.args.items()\n                                                                content    =    Template(\'\'\'\n                                                                                action:    <i>{{    f.__name__    }}</i><br>\n                                                                                <br>\n                                                                                <b>Parameters</b>:<br>\n                                                                                <table>\n                                      ...

What's a good function header?

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

def notify_owner(f):