human
Complete the below
def attrs(**kwds):

    ''''Decorator to add attributes to a function.
    Example:
    @attrs(versionadded="2.2",
    author="Guido van Rossum")
    def mymethod(f):'
    '''
assistant
#Here is the Python program you requested.
    def decorate(f):
        for k in kwds:
            setattr(f, k, kwds[k])
        return f
    return decorate