code: def image_class_pipeline_runner():
      (
          pipeline_models,
          embedding_sizes,
          skipped_cases,
      ) = image_class_pipeline_register()
      for pipeline_model, embedding_size_each in zip(
          pipeline_models, embedding_sizes
      ):
          invalid_embedding_obj = TestImageEmbeddingInvalid()
          for func in dir(TestImageEmbeddingInvalid):
              if func in skipped_cases:
                  continue
              if not func.startswith("__"):
                  print("Testing %s" % func)
                  res = methodcaller(func)(invalid_embedding_obj)
                  if res == 1:
                      print("%s PASS" % func)
                  else:
                      print("%s FAIL" % func)
          valid_embedding_obj = TestImageEmbeddingValid()
          for func in dir(TestImageEmbeddingValid):
              if func in skipped_cases:
                  continue
              if not func.startswith("__"):
                  print("Testing %s:%s" % (func, pipeline_model))
                  res = methodcaller(
                      func, pipeline_model, embedding_size_each
                  )(valid_embedding_obj)
                  if res == 1:
                      print("%s:%s PASS" % (func, pipeline_model))
                  else:
                      print("%s:%s FAIL" % (func, pipeline_model))
  
          test_valid_embedding = TestImageEmbeddingStress()
          for func in dir(TestImageEmbeddingStress):
              if func in skipped_cases:
                  continue
              if not func.startswith("__"):
                  print("Testing %s:%s" % (func, pipeline_model))
                  res = methodcaller(
                      func, pipeline_model, embedding_size_each
                  )(test_valid_embedding)
                  if res == 1:
                      print("%s:%s PASS" % (func, pipeline_model))
                  else:
                      print("%s:%s FAIL" % (func, pipeline_model))
  
          test_valid_embedding_per = TestImageEmbeddingPerformance()
          for func in dir(TestImageEmbeddingPerformance):
              if func in skipped_cases:
                  continue
              if not func.startswith("__"):
                  print("Testing %s:%s" % (func, pipeline_model))
                  res = methodcaller(
                      func, pipeline_model, embedding_size_each
                  )(test_valid_embedding_per)
                  if res == 1:
                      print("%s:%s PASS" % (func, pipeline_model))
                  else:
                      print("%s:%s FAIL" % (func, pipeline_model))
  
      return True
  
file_path: towhee/tests/testcases/test_main.py
imports: from operator import methodcaller
  from test_image_embedding import *
  from test_data_collection import *
  from test_command import *
label_desc: Use image node_id 4 for calling a global function with example usage: image_class_pipeline_runner() and returns: True