code: def rebuild(self, **kwargs):
          '''Repopulate the node-tracking data structures.  Shouldn't
          really ever be needed.
          '''
          self.nodes = []
          self.node_types = []
          self.id_dict = {}
          self.type_dict = {}
  
          self.add_node(self.rootf rebuild(self, **kwargs):
          '''Repopulate the node-tracking data structures.  Shouldn't
          really ever be needed.
          '''
          self.nodes = []
          self.node_types = []
          self.id_dict = {}
          self.type_dict = {}
  
          self.add_node(self.root)
docs: Repopulate the node-tracking data structures.  Shouldn't
          really ever be needed.