<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resource(self):
 """ Resource associated with operation. """

        if self._resource:
            return self._resource
        elif self.binding:
            return self.binding.resource