code: def rebuild(self):
      self.input_layers.clear()
      self.output_layers.clear()
      self.topological_sort.clear()
      self.filter_node()
      super(IRGraph, self).build()
      self.input_layers = list(
          filter(
              lambda x: self.layer_map[x].type != "Constant",
              self.input_layers,
          )
      )
  
imports: import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.common.IR.graph_pb2 import TensorShape, AttrValue
  from mmdnn.conversion.common.DataStructure.graph import Graph, GraphNode
label_desc: Use image node_id 5 for calling the IRGraph obj's underlying member method code with example usage: obj.rebuild() without return types