code: def _convert_attr_value(attr_value):
      if attr_value.HasField("list"):
          value = _convert_attr_list(attr_value)
      elif attr_value.HasField("s"):
          value = attr_value.s.decode("utf8")
      elif attr_value.HasField("i"):
          value = attr_value.i
      elif attr_value.HasField("f"):
          value = _convert_number(attr_value.f)
      elif attr_value.HasField("b"):
          value = attr_value.b
      elif attr_value.HasField("type"):
          value = _convert_type(attr_value.type)
      elif attr_value.HasField("tensor"):
          value = _convert_tensor(attr_value.tensor)
      elif attr_value.HasField("shape"):
          value = _convert_shape(attr_value.shape)
      else:
          raise NotImplementedError()
      return value
  
imports: import json
  import logging
  import os
  import google.protobuf
  from tensorflow.core.framework import api_def_pb2
  from tensorflow.core.framework import op_def_pb2
  from tensorflow.core.framework import types_pb2
label_desc: Use image node_id 14 for calling a global function with example usage: _convert_attr_value(attr_value) and returns: value