human
What is a the Python program you requested given the following:
Complete the below
def can_become_premium(f):

    ''''Check that the webapp can become premium.'
    '''
assistant
#Here is the Python program you requested.
    @functools.wraps(f)
    def wrapper(request, addon_id, addon, *args, **kw):
        if (not addon.can_become_premium()):
            log.info(('Cannot    become    premium:    %d' % addon.pk))
            raise PermissionDenied
        return f(request, addon_id, addon, *args, **kw)
    return wrapper