code: def add_variable(self, node):
          
          if node.name not in self.variable_names:
              self.variables.append(node)
              self.variable_names.add(node.name)
              node.parent = self
docs: Add a variable node to this node.
  
          :sig: (VariableNode) -> None
          :param node: Variable node to add.