code: def _copy_and_reop(source_node, IR_node, new_op=None):
      source_node_layer = source_node.layer
      IR_node.name = source_node_layer.name
  
      if new_op:
          IR_node.op = new_op
      elif source_node_layer.HasField("convolution"):
          IR_node.op = "convolution"
      elif source_node_layer.HasField("batchnorm"):
          IR_node.op = "batchnorm"
      elif source_node_layer.HasField("scale"):
          IR_node.op = "scale"
      elif source_node_layer.HasField("pooling"):
          IR_node.op = "pooling"
      elif source_node_layer.HasField("activation"):
          IR_node.op = "activation"
      elif source_node_layer.HasField("softmax"):
          IR_node.op = "softmax"
      elif source_node_layer.HasField("padding"):
          IR_node.op = "padding"
      elif source_node_layer.HasField("add"):
          IR_node.op = "add"
      elif source_node_layer.HasField("flatten"):
          IR_node.op = "flatten"
      elif source_node_layer.HasField("innerProduct"):
          IR_node.op = "innerProduct"
      elif source_node_layer.HasField("concat"):
          IR_node.op = "concatenate"
      else:
          assert False
  
      #  TODO dtype_map
      if hasattr(source_node.layer, "dtype"):
          IR_node.attr["dtype"].type = CoremlParser.dtype_map[
              source_node.layer.dtype
          ]
  
      CoremlParser._set_output_shape(source_node, IR_node)
  
imports: import os
  from six import string_types
  import numpy
  import math
  from coremltools.models.neural_network import NeuralNetworkBuilder
  from coremltools.models import datatypes
  from coremltools.models import MLModel
  from coremltools.models.utils import save_spec
  from coremltools.models._infer_shapes_nn_mlmodel import infer_shapes
  from coremltools.proto import Model_pb2, NeuralNetwork_pb2
  from mmdnn.conversion.coreml.coreml_graph import CoremlGraph
  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 6 for calling the CoremlParser obj's underlying member method code with example usage: obj._copy_and_reop(source_node, IR_node, new_op) without return types