code: def get_attr(self, name, default_value=None):
      if name in self.layer.attr:
          attr = self.layer.attr[name]
          field = attr.WhichOneof("value")
          val = getattr(attr, field) if field else default_value
          if not val:
              return val
          if isinstance(val, AttrValue.ListValue):
              if val.ListFields():
                  return list(val.ListFields()[0][1])
              else:
                  return val.ListFields()
          else:
              return (
                  val.decode("utf-8") if isinstance(val, bytes) else val
              )
      else:
          return default_value
  
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 6 for calling the IRGraphNode obj's underlying member method code with example usage: obj.get_attr(name, default_value) and returns: default_value, val, unknown, list, val