<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def path_iter(self, include_self=True):
 """Yields back the path from this node to the root node."""

        if include_self:
            node = self
        else:
            node = self.parent
        while node is not None:
            yield node
            node = node.parent