code: def __init__(self, input_arg):
      super(MXNetParser, self).__init__()
  
      json_data = list()
      self.data_shape = tuple()
      # load model files into MXNet graph
      # data_shape arguments added to calculate infer_shape(required)
      # if isinstance(input_arg, basestring):
      if len(input_arg) == 2:
          with open(input_arg[0], "r") as input_json:
              json_string = input_json.read()
              symbol = mx.sym.load_json(json_string)
              self.model = mx.mod.Module(symbol=symbol)
          json_data = MXNetParser._load_json_file(input_arg[0])
          self.data_shape = tuple([1] + list(map(int, input_arg[1])))
  
      elif len(input_arg) == 4:
          self.model, self.weight_data = MXNetParser._load_model(
              input_arg[1], input_arg[2]
          )
          json_data = MXNetParser._load_json_file(input_arg[0])
          self.weight_loaded = True
          assert isinstance(input_arg[3], list)
          self.data_shape = tuple([1] + list(map(int, input_arg[3])))
  
      else:
          raise ValueError(
              "the # of input arguments [{}] is not supported"
              % len(input_arg)
          )
  
      # Build network graph
      self.data_format = "None"
      self.mxnet_graph = MXNetGraph(self.model)
      self.mxnet_graph.build(json_data)
  
imports: import os
  import sys
  import math
  import mxnet
  import numpy
  from mmdnn.conversion.mxnet.mxnet_graph import MXNetGraph
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.DataStructure.parser import Parser
  from mmdnn.conversion.common.utils import *
label_desc: Use image node_id 10 to create a new MXNetParser object from inherited base classes: Parser with example: obj = MXNetParser(input_arg)