code: def path(self):
          "Return a list of nodes forming the path from the root to this node."
          node, path_back = self, []
          while node:
              path_back.append(node)
              node = node.parent
          return list(reversed(path_back)f path(self):
          "Return a list of nodes forming the path from the root to this node."
          node, path_back = self, []
          while node:
              path_back.append(node)
              node = node.parent
          return list(reversed(path_back))
docs: Return a list of nodes forming the path from the root to this node.