human
I wrote the below code

    def _dec(func):
        def _wrapper(self, *args, **kwargs):
            @decorator
            def bound_func(*args2, **kwargs2):
                return func(self, *args2, **kwargs2)
            return bound_func(*args, **kwargs)
        @decorator
        def dummy(*args, **kwargs):
            pass
        update_wrapper(_wrapper, dummy)
        update_wrapper(_wrapper, func)
        return _wrapper
    update_wrapper(_dec, decorator)
    _dec.__name__ = ('method_decorator(%s)' % decorator.__name__)
    return _dec

What's a good function header?

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

def method_decorator(decorator):