code: def __init__(self, architecture, weight):
      super(CoreMLEmitter, self).__init__()
      if os.path.exists(architecture) == False:
          raise ValueError(
              "IR architecture file [{}] is not found.".format(
                  architecture
              )
          )
      else:
          self.IR_graph = IRGraph(architecture)
          self.IR_graph.build()
  
      if os.path.exists(weight) == False:
          raise ValueError(
              "IR weight file [{}] is not found.".format(weight)
          )
      else:
          self._load_weights(weight)
  
imports: from __future__ import division
  import os
  import numpy
  from six import string_types
  from mmdnn.conversion.common.IR.IR_graph import IRGraph, IRGraphNode
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.DataStructure.emitter import Emitter
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.coreml.coreml_utils import _infer_coreml_input_shape
  from coremltools.models.neural_network import NeuralNetworkBuilder
  from coremltools.models import datatypes
  from coremltools.models import MLModel
  from coremltools.models.utils import save_spec
label_desc: Use image node_id 1 to create a new CoreMLEmitter object from inherited base classes: Emitter with example: obj = CoreMLEmitter(architecture, weight)