<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def apply(self, node):
 """ Apply transformation and return if an update happened. """

        new_node = self.run(node)
        return self.update, new_node