human
Complete this python program:
def attrs(**kwds):
assistant
#Here is the Python program you requested.

    """Decorator to add attributes to a function.
    Example:
    @attrs(versionadded="2.2",
    author="Guido van Rossum")
    def mymethod(f):
    """
    def decorate(f):
        for k in kwds:
            setattr(f, k, kwds[k])
        return f
    return decorate