code: def inverted_level_order(self) -> Iterator["BSP"]:
          
          levels = []  # type: List[List['BSP']]
          next = [self]  # type: List['BSP']
          while next:
              levels.append(next)
              level = next  # type: List['BSP']
              next = []
              for node in level:
                  next.extend(node.children)
          while levels:
              yield from levels.pop()
docs: Iterate over this BSP's hierarchy in inverse level order.
  
          .. versionadded:: 8.3