code: def path_iter(self, include_self=True):
          
          if include_self:
              node = self
          else:
              node = self.parent
          while node is not None:
              yield node
              node = node.parent
docs: Yields back the path from this node to the root node.