def apply ( self , node ) : new_node = self . run ( node ) return self . update , new_node
python apply function change self
Apply transformation and return if an update happened .
def apply(self, node):
        """ Apply transformation and return if an update happened. """
        new_node = self.run(node)
        return self.update, new_node