code: def get_callers_locals():
      """Get the local() in the caller's caller's frame (2 frames up)."""
      frame = inspect.currentframe()
      locals = {}
      try:
          locals = frame.f_back.f_back.f_locals
      finally:
          del frame
      return locals
  
imports: import numpy
  import torch
  import re, gc
  from math import isclose
  import inspect
label_desc: Use image node_id 6 for calling a global function with example usage: get_callers_locals() and returns: locals