code: def mxnet_emit(
      original_framework,
      architecture_name,
      architecture_path,
      weight_path,
      test_input_path,
  ):
      from mmdnn.conversion.mxnet.mxnet_emitter import MXNetEmitter
      from collections import namedtuple
  
      Batch = namedtuple("Batch", ["data"])
  
      import mxnet
  
      # IR to code
      converted_file = (
          TestModels.tmpdir
          + original_framework
          + "_mxnet_"
          + architecture_name
          + "_converted"
      )
      converted_file = converted_file.replace(".", "_")
      output_weights_file = converted_file + "-0000.params"
      emitter = MXNetEmitter(
          (architecture_path, weight_path, output_weights_file)
      )
      emitter.run(converted_file + ".py", None, "test")
      del emitter
      del MXNetEmitter
  
      # import converted model
      imported = imp.load_source("MXNetModel", converted_file + ".py")
  
      model_converted = imported.RefactorModel()
      model_converted = imported.deploy_weight(
          model_converted, output_weights_file
      )
  
      original_framework = checkfrozen(original_framework)
      if "rnn" not in architecture_name:
          func = TestKit.preprocess_func[original_framework][
              architecture_name
          ]
          img = func(test_input_path)
          img = np.transpose(img, (2, 0, 1))
          input_data = np.expand_dims(img, 0)
      else:
          input_data = np.load(test_input_path)
  
      model_converted.forward(Batch([mxnet.nd.array(input_data)]))
      predict = model_converted.get_outputs()[0].asnumpy()
      converted_predict = np.squeeze(predict)
  
      del model_converted
      del sys.modules["MXNetModel"]
      del mxnet
  
      os.remove(converted_file + ".py")
      os.remove(output_weights_file)
  
      return converted_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 16 for calling the TestModels obj's underlying member method code with example usage: obj.mxnet_emit(original_framework, architecture_name, architecture_path, weight_path, test_input_path) and returns: converted_predict