code: def getfile(object):  # pylint: disable=redefined-builtin
      """TFDecorator-aware replacement for inspect.getfile."""
      unwrapped_object = tf_decorator.unwrap(object)[1]
  
      # Work around for the case when object is a stack frame
      # and only .pyc files are used. In this case, getfile
      # might return incorrect path. So, we get the path from f_globals
      # instead.
      if (
          hasattr(unwrapped_object, "f_globals")
          and "__file__" in unwrapped_object.f_globals
      ):
          return unwrapped_object.f_globals["__file__"]
      return _inspect.getfile(unwrapped_object)
  
imports: import collections
  import functools
  import inspect
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 9 for calling a global function with example usage: getfile(object) and returns: _inspect, unwrapped_object