code: def _get_caller(offset=3):
      """Returns a code and frame object for the lowest non-logging stack frame."""
      # Use sys._getframe().  This avoids creating a traceback object.
      # pylint: disable=protected-access
      f = _sys._getframe(offset)
      # pylint: enable=protected-access
      our_file = f.f_code.co_filename
      f = f.f_back
      while f:
          code = f.f_code
          if code.co_filename != our_file:
              return code, f
          f = f.f_back
      return None, None
  
imports: import logging
  import os
  import sys
  import _thread
  import time
  import traceback
  from logging import DEBUG
  from logging import ERROR
  from logging import FATAL
  from logging import INFO
  from logging import WARN
  import threading
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling a global function with example usage: _get_caller(offset) and returns: None,  None, code,  f