code: def remove_children(self, reset_parent=True):
          
          if reset_parent:
              for child in self.children:
                  child.parent = None
          self.__children = []
docs: Remove all the children of this node.
  
          :param bool reset_parent: if ``True``, set to ``None`` the parent attribute
                                    of the children