code: def source_code_location(event):
      while event is not None:
          match = re.search(r"\.py\(.*\)", event.name)
          if match is None:
              event = event.parent
              continue
          return event.name
      return "No source code location found"
  
imports: import functools
  import re
  from collections import deque
  from dataclasses import dataclass
  from typing import Dict, List
  from torch.autograd import _KinetoEvent
  from torch.autograd.profiler import profile
  from torch.profiler import DeviceType
label_desc: Use image node_id 4 for calling a global function with example usage: source_code_location(event) and returns: str, event