code: def _has_tf_decorator_attr(obj):
      """Checks if object has _tf_decorator attribute.
  
      This check would work for mocked object as well since it would
      check if returned attribute has the right type.
  
      Args:
        obj: Python object.
      """
      return hasattr(obj, "_tf_decorator") and isinstance(
          getattr(obj, "_tf_decorator"), TFDecorator
      )
  
file_path: tensorflow/tensorflow/python/util/tf_decorator.py
imports: import inspect
  from typing import Dict, Any
label_desc: Use image node_id 5 for calling a global function with example usage: _has_tf_decorator_attr(obj) and returns: unknown