code: def _get_inout(self):
      input_features = []
      output_features = []
      for input_node in self.IR_graph.input_layers:
          if self.IR_graph.get_node(input_node).type == "Const":
              continue
          shape = shape_to_list(
              self.IR_graph.get_node(input_node).get_attr("shape")
          )
          shape = _infer_coreml_input_shape(shape)
          input_features.append((str(input_node), shape))
          print(
              "CoreML Model Input Layer: [{}] {}".format(
                  input_node, shape
              )
          )
  
      for output_node in self.IR_graph.output_layers:
          node = self.IR_graph.get_node(output_node)
  
          if node.type == "Pack":
              continue
  
          node.out_edges.append(node.name)
          shape = node.get_attr("_output_shapes")
          if shape:
              shape = shape_to_list(shape[0])
          else:
              shape = [1]
  
          shape = _infer_coreml_input_shape(shape)
  
          output_features.append((str(output_node), shape))
  
          print(
              "CoreML Model Output Layer: [{}] {}".format(
                  output_node, shape
              )
          )
  
      return list(input_features), list(output_features)
  
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 2 for calling the CoreMLEmitter obj's underlying member method code with example usage: obj._get_inout() and returns: list,  list