code: def __str__(self) -> str:
      return "\n".join(item._indent_print() for item in self)
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Iterator, TypeVar
  from urllib.parse import urlsplit
  from mkdocs.exceptions import BuildError
  from mkdocs.structure import StructureItem
  from mkdocs.structure.pages import Page, _AbsoluteLinksValidationValue
  from mkdocs.utils import nest_paths
label_desc: Use image node_id 2 for calling the Navigation obj's underlying member method code with example usage: obj.__str__() and returns: str