<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def activate(self, resource=None, timeout=3, wait_for_finish=False):
 """ Activate this package on the SMC :param list resource: node href's to activate on. Resource is only required for software upgrades :param int timeout: timeout between queries :raises TaskRunFailed: failure during activation (downloading, etc) :rtype: TaskOperationPoller """

        return Task.execute(self, 'activate', json={'resource': resource},
            timeout=timeout, wait_for_finish=wait_for_finish)