code: def caffe_parse(architecture_name, test_input_path):
      from mmdnn.conversion.examples.caffe.extractor import (
          caffe_extractor,
      )
  
      # download model
      architecture_file, weight_file = caffe_extractor.download(
          architecture_name, TestModels.cachedir
      )
  
      # get original model prediction result
      original_predict = caffe_extractor.inference(
          architecture_name,
          (architecture_file, weight_file),
          TestModels.cachedir,
          test_input_path,
      )
      del caffe_extractor
  
      # original to IR
      from mmdnn.conversion.caffe.transformer import CaffeTransformer
  
      transformer = CaffeTransformer(
          architecture_file,
          weight_file,
          "tensorflow",
          None,
          phase="TEST",
      )
      graph = transformer.transform_graph()
      data = transformer.transform_data()
      del CaffeTransformer
  
      from mmdnn.conversion.caffe.writer import ModelSaver, PyWriter
  
      prototxt = graph.as_graph_def().SerializeToString()
      IR_file = (
          TestModels.tmpdir
          + "caffe_"
          + architecture_name
          + "_converted"
      )
      pb_path = IR_file + ".pb"
      with open(pb_path, "wb") as of:
          of.write(prototxt)
      print("IR network structure is saved as [{}].".format(pb_path))
  
      import numpy as np
  
      npy_path = IR_file + ".npy"
      with open(npy_path, "wb") as of:
          np.save(of, data)
      print("IR weights are saved as [{}].".format(npy_path))
  
      if original_predict.ndim == 3:
          original_predict = np.transpose(original_predict, (1, 2, 0))
  
      return original_predict
  
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 6 for calling the TestModels obj's underlying member method code with example usage: obj.caffe_parse(architecture_name, test_input_path) and returns: original_predict