human
I wrote the below code

    for (xxx, yyy) in func._params:
        def param_rule(self, p):
            func(self, p)
        param_rule.__doc__ = func.__doc__.replace('xxx', xxx).replace('yyy', yyy)
        param_rule.__name__ = func.__name__.replace('xxx', xxx)
        setattr(cls, param_rule.__name__, param_rule)

What's a good function header?

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

def _create_param_rules(cls, func):