code: def filter_node(self):
      self.layer_map = dict(
          filter(
              lambda layer: layer[1].in_edges or layer[1].out_edges,
              self.layer_map.items(),
          )
      )
  
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 3 for calling the IRGraph obj's underlying member method code with example usage: obj.filter_node() without return types