human
I wrote the below code

    def check_params_decorator(function):
        def check_params_wrapper(options, *args):
            if (not (len(required) <= len(args) <= (len(required) + len(optional)))):
                sys.stderr.write(("Incorrect    usage    for    command    '%s'\n\n" % name))
                usage()
            function(options, *args)
        check_params_wrapper.required = required
        check_params_wrapper.optional = optional
        commands[name] = check_params_wrapper
        return check_params_wrapper
    return check_params_decorator

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

@util.positional(1)
def command(name, required=(), optional=()):