human
I wrote the below code

    invoked = bool(((not args) or kwargs))
    task_class = kwargs.pop('task_class', tasks.WrappedCallableTask)
    if (not invoked):
        (func, args) = (args[0], ())
    def wrapper(func):
        return task_class(func, *args, **kwargs)
    return (wrapper if invoked else wrapper(func))

What's a good function header?

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

def task(*args, **kwargs):