human
I wrote the below code

    def wrapped(self, *args, **kwargs):
        res = meth(self, *args, **kwargs)
        if (getattr(self, 'parent', None) is not None):
            getattr(self.parent, meth.__name__)(*args, **kwargs)
        return res
    wrapped.__name__ = meth.__name__
    return wrapped

What's a good function header?

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

def withparent(meth):