code: def gen_IR(self):
      for layer in self.paddle_graph.topological_sort:
          current_node = self.paddle_graph.get_node(layer)
          node_type = PaddleParser.layer_map[current_node.type]
          if hasattr(self, "rename_" + node_type):
              func = getattr(self, "rename_" + node_type)
              func(current_node)
          else:
              print(
                  "PaddleParser has not supported operator [%s]."
                  % (node_type)
              )
              self.rename_UNKNOWN(current_node)
  
imports: from __future__ import absolute_import
  import os
  import gzip
  from six import string_types
  import paddle.v2
  import paddle.trainer_config_helpers.layers
  import numpy
  from mmdnn.conversion.paddle.paddle_graph import PaddleGraph
  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 4 for calling the PaddleParser obj's underlying member method code with example usage: obj.gen_IR() without return types