human
I wrote the below code

    if (newname is None):
        newname = f.__name__
    warning = ('The    function    ``%s``    is    deprecated    and    is    kept    temporarily    for    backwards    compatibility.\nPlease    use    the    new    name,    ``%s``,    instead.' % (oldname, newname))
    def fdepr(*a, **kw):
        warnings.warn(('MoviePy:    ' + warning), PendingDeprecationWarning)
        return f(*a, **kw)
    fdepr.__doc__ = warning
    return fdepr

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

def deprecated_version_of(f, oldname, newname=None):