code: def build(self, json_data):
      self.input_layers = list()
      input_dict = dict()  # dict{layer_num, layer_name}
      layer_num = -1
  
      import re
  
      for layer in json_data:
          layer_num += 1
          # if layer["op"] == "null":
          #     continue
  
          if (
              re.search(
                  "_(weight|bias|var|mean|gamma|beta|label)",
                  layer["name"],
              )
              and layer["op"] == "null"
          ):
              continue
  
          input_dict.update({layer_num: layer["name"]})
          self.layer_map[layer["name"]] = MXNetGraphNode(layer)
          self.layer_name_map[layer["name"]] = layer["name"]
          for input_layer in layer["inputs"]:
              assert isinstance(input_layer, list)
              if input_layer[0] in input_dict:
                  pred = input_dict.get(input_layer[0])
  
                  if pred not in self.layer_map:
                      new_node = dict(
                          {"op": "NoOp", "name": pred, "inputs": list()}
                      )
                      self.layer_map[pred] = MXNetGraphNode(new_node)
                      self.layer_name_map[pred] = pred
  
                  self._make_connection(pred, layer["name"])
  
      super(MXNetGraph, self).build()
  
file_path: MMdnn/mmdnn/conversion/mxnet/mxnet_graph.py
imports: import os
  import mxnet
  from mmdnn.conversion.common.DataStructure.graph import GraphNode, Graph
label_desc: Use image node_id 2 for calling the MXNetGraph obj's underlying member method code with example usage: obj.build(json_data) without return types