code: def _is_test_class(obj):
      """Check if arbitrary object is a test class (not a test object!).
  
      Args:
        obj: An arbitrary object from within a module.
  
      Returns:
        True iff obj is a test class inheriting at some point from a module
        named "TestCase". This is because we write tests using different underlying
        test libraries.
      """
      return tf_inspect.isclass(obj) and "TestCase" in (
          p.__name__ for p in tf_inspect.getmro(obj)
      )
  
file_path: tensorflow-upstream/tensorflow/python/tpu/tpu_test_wrapper.py
imports: import ast
  import importlib
  import os
  import sys
  import uuid
  from tensorflow.python.platform import flags
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 5 for calling a global function with example usage: _is_test_class(obj) and returns: unknown