code: def get_caller_name():
      """Get name of caller method."""
      # this_func_frame = inspect.stack()[0][0]  # i.e., get_caller_name
      # callee_frame = inspect.stack()[1][0]  # e.g., log_img_scale
      caller_frame = inspect.stack()[2][
          0
      ]  # e.g., caller of log_img_scale
      caller_method = caller_frame.f_code.co_name
      try:
          caller_class = caller_frame.f_locals[
              "self"
          ].__class__.__name__
          return f"{caller_class}.{caller_method}"
      except KeyError:  # caller is a function
          return caller_method
  
imports: import inspect
  from mmengine.logging import print_log
label_desc: Use image node_id 1 for calling a global function with example usage: get_caller_name() and returns: caller_class, str, caller_method, caller_method