message: Fixes Fix getfile in cases when .py files aren't available (only .pyc files are
  used).
diff: @@ -117,7 +117,16 @@ def getdoc(object): # pylint: disable=redefined-builtin
  def getfile(object): # pylint: disable=redefined-builtin
  """TFDecorator-aware replacement for inspect.getfile."""
  - return _inspect.getfile(tf_decorator.unwrap(object)[1])
  + 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)
  def getmembers(object, predicate=None): # pylint: disable=redefined-builtin
  