code: def is_valid_test_class(test_class):
      """Restrict to `XXXModelTesterMixin` and should be a subclass of `unittest.TestCase`."""
      base_class_names = {
          "ModelTesterMixin",
          "TFModelTesterMixin",
          "FlaxModelTesterMixin",
      }
      if not issubclass(test_class, unittest.TestCase):
          return False
      return (
          len(
              base_class_names.intersection(
                  [x.__name__ for x in test_class.__bases__]
              )
          )
          > 0
      )
  
file_path: transformers/utils/add_pipeline_model_mapping_to_test.py
imports: import argparse
  import glob
  import inspect
  import os
  import re
  import unittest
  from get_test_info import get_test_classes
  from tests.test_pipeline_mixin import pipeline_test_mapping
label_desc: Use image node_id 6 for calling a global function with example usage: is_valid_test_class(test_class) and returns: unknown, False