<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_result(self, result):
 """Sets the return value of work associated with the future. Should only be used by Task and unit tests. """

        self._result = result
        self._state = self.FINISHED