class_docstr: An item in MkDocs structure - see concrete subclasses Section, Page or Link.
code: def ancestors(self) -> Iterable[StructureItem]:
      if self.parent is None:
          return []
      return [self.parent, *self.parent.ancestors]
  
imports: from __future__ import annotations
  import abc
  from typing import TYPE_CHECKING, Iterable
label_desc: Use image node_id 3 for calling the StructureItem obj's underlying member method code with example usage: obj.ancestors() and returns: list, list