def METHOD_NAME(attr_proto):
  """Convert a list of AttributeProto to a dict, with names as keys."""
  attrs = {}
  for key, value in attr_proto.items():
    attrs[key] = get_attr_proto_value(value)
  return attrs