code: def __init__(self, items: list, pages: list[Page]) -> None:
      self.items = items  # Nested List with full navigation of Sections, Pages, and Links.
      self.pages = (
          pages  # Flat List of subset of Pages in nav, in order.
      )
  
      self.homepage = None
      for page in pages:
          if page.is_homepage:
              self.homepage = page
              break
  
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 1 to create a new Navigation object  with example: obj = Navigation(items, pages)