human
I wrote the below code

    def outer(fun):
        msg = ('%s()    is    deprecated.
   use    %s()    instead' % (fun.__name__, replacement))
        if (fun.__doc__ is None):
            fun.__doc__ = msg
        @functools.wraps(fun)
        def inner(self, *args, **kwargs):
            warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
            return getattr(self, replacement)(*args, **kwargs)
        return inner
    return outer

What's a good function header?

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

def deprecated_method(replacement):