code: def get_nvtx_path() -> Optional[str]:
      assert sys.platform == "win32"
  
      prog = os.environ.get("ProgramFiles", "C:\\Program Files")
      pattern = os.path.join(
          prog,
          "NVIDIA Corporation",
          "Nsight Systems *",
          "target-windows-x64",
          "nvtx",
      )
      print(f"Looking for NVTX: {pattern}")
      candidates = sorted(glob.glob(pattern))
      if len(candidates) != 0:
          # Pick the latest one
          nvtx = candidates[-1]
          print(f"Using NVTX at: {nvtx}")
          return nvtx
      print("NVTX could not be found")
      return None
  
imports: import functools
  import glob
  import os
  import sys
  from typing import Any, Callable, Optional
label_desc: Use image node_id 2 for calling a global function with example usage: get_nvtx_path() and returns: None, nvtx