code: def walk(value, path="$"):
      yield value, path
      if isinstance(value, dict):
          for k, v in value.items():
              yield from walk(v, path + f"[{k!r}]")
      elif isinstance(value, (list, set, tuple)):
          for no, v in enumerate(value):
              yield from walk(v, path + f"[{no}]")
  
file_path: airflow/scripts/ci/pre_commit/pre_commit_chart_schema.py
imports: from __future__ import annotations
  import json
  import sys
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: walk(value, path) without return types