human
I wrote the below code

    def rd(function):
        @wraps(function)
        def wrapper(*args, **kwargs):
            return function(*args, **kwargs)
        if dargs:
            for n in dargs:
                if (function.__doc__ and len(function.__doc__)):
                    function.__doc__ = function.__doc__.strip()
                setattr(API2, n, function)
            return wrapper
        if (function.__doc__ and len(function.__doc__)):
            function.__doc__ = function.__doc__.strip()
        setattr(API2, function.__name__, function)
        return wrapper
    return rd

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

def addtoapi(*dargs, **dkwargs):