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

    @wraps(fun)
    def _inner(*args, **kwargs):
        try:
            retval = fun(*args, **kwargs)
        except Exception as exc:
            response = {'status': 'failure', 'reason': safe_repr(exc)}
        else:
            response = {'status': 'success', 'retval': retval}
        return JsonResponse(response)
    return _inner

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

def task_webhook(fun):