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 isinstance(val, attr_value_pb2.AttrValue.ListValue):
              return list(val.ListFields()[0][1])
          else:
              return (
                  val.decode("utf-8") if isinstance(val, bytes) else val
              )
      else:
          return default_value
  
file_path: MMdnn/mmdnn/conversion/tensorflow/tensorflow_graph.py
imports: from mmdnn.conversion.common.DataStructure.graph import GraphNode, Graph
  from tensorflow.core.framework.node_def_pb2 import NodeDef
  from tensorflow.core.framework import attr_value_pb2
label_desc: Use image node_id 7 for calling the TensorflowGraphNode obj's underlying member method code with example usage: obj.get_attr(name, default_value) and returns: default_value, list, unknown