code: def gen_IR(self):
      # load weight by original order
      for layer in self.dk_graph.original_list:
          current_node = self.dk_graph.get_node(layer)
          node_type = current_node.type
          # print(node_type)
          if hasattr(self, "rename_" + node_type):
              func = getattr(self, "rename_" + node_type)
              func(current_node)
          else:
              self.rename_UNKNOWN(current_node)
  
      print("loaded weights buf size: {}".format(self.start))
  
imports: import os
  import numpy
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.darknet.prototxt import *
  from mmdnn.conversion.darknet.darknet_utils import *
  from mmdnn.conversion.darknet.darknet_graph import DarknetGraph
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.DataStructure.parser import Parser
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
label_desc: Use image node_id 3 for calling the DarknetParser obj's underlying member method code with example usage: obj.gen_IR() without return types