code: def _test_function(self, original_framework, parser):
      print(
          "[{}] Testing {} models starts.".format(
              datetime.now(), original_framework
          ),
          file=sys.stderr,
      )
  
      ensure_dir(self.cachedir)
      ensure_dir(self.tmpdir)
  
      for network_name in self.test_table[original_framework].keys():
          print(
              "[{}] Testing {} {} starts.".format(
                  datetime.now(), original_framework, network_name
              ),
              file=sys.stderr,
          )
  
          # get test input path
          test_input = self._get_test_input(network_name)
  
          # get original model prediction result
          original_predict = parser(network_name, test_input)
  
          IR_file = (
              TestModels.tmpdir
              + original_framework
              + "_"
              + network_name
              + "_converted"
          )
          for emit in self.test_table[original_framework][network_name]:
              if isinstance(emit, staticmethod):
                  emit = emit.__func__
              target_framework = emit.__name__[:-5]
  
              if target_framework == "coreml":
                  if not is_coreml_supported():
                      continue
  
              print(
                  "[{}] Converting {} from {} to {} starts.".format(
                      datetime.now(),
                      network_name,
                      original_framework,
                      target_framework,
                  ),
                  file=sys.stderr,
              )
              converted_predict = emit(
                  original_framework,
                  network_name,
                  IR_file + ".pb",
                  IR_file + ".npy",
                  test_input,
              )
  
              self._compare_outputs(
                  original_framework,
                  target_framework,
                  network_name,
                  original_predict,
                  converted_predict,
                  self._need_assert(
                      original_framework,
                      target_framework,
                      network_name,
                      original_predict,
                      converted_predict,
                  ),
              )
              print(
                  "[{}] Converting {} from {} to {} passed.".format(
                      datetime.now(),
                      network_name,
                      original_framework,
                      target_framework,
                  ),
                  file=sys.stderr,
              )
  
          try:
              os.remove(IR_file + ".json")
          except OSError:
              pass
  
          os.remove(IR_file + ".pb")
          os.remove(IR_file + ".npy")
          print(
              "[{}] Testing {} {} passed.".format(
                  datetime.now(), original_framework, network_name
              ),
              file=sys.stderr,
          )
  
      print(
          "[{}] Testing {} models passed.".format(
              datetime.now(), original_framework
          ),
          file=sys.stderr,
      )
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  import os
  import sys
  import imp
  import numpy
  from mmdnn.conversion.examples.imagenet_test import TestKit
  import utils
  from utils import *
  from datetime import datetime
label_desc: Use image node_id 22 for calling the TestModels obj's underlying member method code with example usage: obj._test_function(original_framework, parser) without return types