human
I wrote the below code

    if (not ((args and (not kwargs)) or ((not args) and kwargs))):
        raise ValueError
    if args:
        (application_function,) = args
        application = Application(application_function)
        return application
    else:
        def wrap_application(application_function):
            application = Application(application_function)
            for (key, value) in kwargs.items():
                setattr(application, key, value)
            return application
        return wrap_application

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

def application(*args, **kwargs):