code: def resolve_include(path: Path, include_dirs: List[Path]) -> Path:
      for include_path in include_dirs:
          abs_path = include_path / path
          if abs_path.exists():
              return abs_path
  
      paths = "\n    ".join(str(d / path) for d in include_dirs)
      raise RuntimeError(
          f"""
  ERROR: Failed to resolve dependency:
      {path}
  Tried the following paths, but none existed:
      {paths}
  """
      )
  
imports: import subprocess
  import sys
  from pathlib import Path
  from typing import List, Optional, TextIO
label_desc: Use image node_id 1 for calling a global function with example usage: resolve_include(path, include_dirs) and returns: abs_path