human
I wrote the below code

    def val(fn):
        @wraps(fn)
        def newfn(self, *a, **env):
            try:
                kw = _make_validated_kw(fn, simple_vals, param_vals, env)
            except RedditError as err:
                self.on_validation_error(err)
            for err in c.errors:
                self.on_validation_error(c.errors[err])
            try:
                return fn(self, *a, **kw)
            except RedditError as err:
                self.on_validation_error(err)
        set_api_docs(newfn, simple_vals, param_vals)
        newfn.handles_csrf = _validators_handle_csrf(simple_vals, param_vals)
        return newfn
    return val

What's a good function header?

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

def validate(*simple_vals, **param_vals):