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

    def _applier(request, **options):
        kwargs = kwdict((((request.method == 'POST') and request.POST.copy()) or request.GET.copy()))
        kwargs.update(options)
        result = task.apply_async(kwargs=kwargs)
        return JsonResponse({'ok': 'true', 'task_id': result.task_id})
    return _applier

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

def task_view(task):