code: def gen_IR(self):
      for layer in self.src_graph.topological_sort:
          current_node = self.src_graph.get_node(layer)
          onnx_node_type = current_node.type
          if onnx_node_type not in PytorchParser.layer_map.keys():
              print(
                  "PyTorch parser has not supported operator [%s]. IR network strucuture may lost info."
                  % (onnx_node_type)
              )
              return
          node_type = PytorchParser.layer_map[onnx_node_type]
  
          if hasattr(self, "rename_" + node_type):
              func = getattr(self, "rename_" + node_type)
              func(current_node)
  
          else:
              self.rename_UNKNOWN(current_node)
  
      self.gen_Input()
  
imports: import os
  import numpy
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.common.DataStructure.parser import Parser
  from mmdnn.conversion.pytorch.pytorch_graph import PytorchGraph040
  from mmdnn.conversion.pytorch.pytorch_graph import PytorchGraph151
  import torch
  import torchvision
label_desc: Use image node_id 5 for calling the PytorchParser obj's underlying member method code with example usage: obj.gen_IR() without return types