code: def remove_child(self, label):
          
          ind = None
          for i,c in enumerate(self.children):
              if c.label==label:
                  ind = i
  
          if ind is None:
              logging.warning('No child labeled {}.'.format(label))
              return
          self.children.pop(ind)
          self._clear_all_leaves()
docs: Removes node by label