code: def print_path(path: Path) -> str:
      
      path_str = ""
      current_path: Optional[Path] = path
      while current_path:
          path_str = (
              f".{current_path.key}"
              if isinstance(current_path.key, str)
              else f"[{current_path.key}]"
          ) + path_str
          current_path = current_path.prev
      return f"value{path_str}" if path_str else ""
docs: Build string describing the path into the value where error was found