<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parent(self, resource):
 """Set parent resource :param resource: parent resource :type resource: Resource :raises ResourceNotFound: resource not found on the API """

        resource.check()
        self['parent_type'] = resource.type
        self['parent_uuid'] = resource.uuid