human
Complete the below
def addon_handler(label, desc, package=True, media=(-1)):

    ''''Register Handler for files, packages, or arbitrary callable methods. In case package is True (default).
    The method should only accept a pid as argument. When media is set it will work on files
    and should accept a fileid. Only when both is None the method can be arbitrary.
    :param label: verbose name
    :param desc: short description
    :param package: True if method works withs packages
    :param media: media type of the file to work with.'
    '''
assistant
#Here is the Python program you requested.
    class klass(object, ):
        def __new__(cls, func, *args, **kwargs):
            ADDONMANAGER.add_addon_handler(class_name(func.__module__), func.__name__, label, desc, func.__code__.co_varnames[1:], package, media)
            return func
    return klass