class_docstr: .. note:: `zoo.pipeline.api.onnx` is deprecated in 0.10.0
  This will be removed in future releases.
class_docstr_tok: ["..","note",":",":","`","zoo.pipeline.api.onnx","`","is","deprecated","in","0.10.0","This","will","be","removed","in","future","releases","."]
docstr: Convert a list of AttributeProto to a dict, with names as keys.
docstr_tok: ["Convert","a","list","of","AttributeProto","to","a","dict",",","with","names","as","keys","."]
code: def parse_attr(attr_proto):
      """Convert a list of AttributeProto to a dict, with names as keys."""
      warnings.warn(
          "deprecated in 0.10.0, and will be removed in future release"
      )
      attrs = {}
      for a in attr_proto:
          for f in ["f", "i", "s"]:
              if a.HasField(f):
                  attrs[a.name] = getattr(a, f)
          for f in ["floats", "ints", "strings"]:
              if list(getattr(a, f)):
                  assert (
                      a.name not in attrs
                  ), "Only one type of attr is allowed"
                  attrs[a.name] = tuple(getattr(a, f))
          for f in ["t", "g"]:
              if a.HasField(f):
                  attrs[a.name] = getattr(a, f)
          for f in ["tensors", "graphs"]:
              if list(getattr(a, f)):
                  raise NotImplementedError(
                      "Filed {} is not supported in mxnet.".format(f)
                  )
          if a.name not in attrs:
              raise ValueError(
                  "Cannot parse attribute: \n{}\n.".format(a)
              )
      return attrs
  
imports: import warnings
label_desc: Use image node_id 1 for calling the OnnxHelper obj's underlying member method code with example usage: obj.parse_attr(attr_proto) and returns: attrs