code: def _inspect_original_var_name(var, fallback_name):
      """
      Inspect variable name, will search above frames and fetch the same instance variable name
      in the most outer frame.
      If inspect failed, return fallback_name
      """
      if var is None:
          return fallback_name
      try:
          original_var_name = fallback_name
  
          frame = inspect.currentframe().f_back
          while frame is not None:
              arg_info = inspect.getargvalues(
                  frame
              )  # pylint: disable=deprecated-method
  
              fixed_args = [
                  arg_info.locals[arg_name]
                  for arg_name in arg_info.args
              ]
              varlen_args = (
                  list(arg_info.locals[arg_info.varargs])
                  if arg_info.varargs
                  else []
              )
              keyword_args = (
                  list(arg_info.locals[arg_info.keywords].values())
                  if arg_info.keywords
                  else []
              )
  
              all_args = fixed_args + varlen_args + keyword_args
  
              # check whether `var` is in arg list first. If yes, go to check parent frame.
              if any(var is arg for arg in all_args):
                  # the var is passed in from caller, check parent frame.
                  frame = frame.f_back
                  continue
  
              for var_name, var_val in frame.f_locals.items():
                  if var_val is var:
                      original_var_name = var_name
                      break
  
              break
  
          return original_var_name
  
      except Exception:
          return fallback_name
  
imports: import base64
  import inspect
  import logging
  import socket
  import subprocess
  import uuid
  from contextlib import closing
  from itertools import islice
  from sys import version_info
label_desc: Use image node_id 10 for calling a global function with example usage: _inspect_original_var_name(var, fallback_name) and returns: fallback_name, original_var_name, fallback_name