code: def _descendants(self):
          
          children = self._children
          if children is not None:
              for child in children.values():
                  yield from child._descendants
                  yield child
docs: Scans full list of node descendants.
  
          :return: Generator of nodes.