code: def _update_attributes(json_schema, schema):
      json_schema["attributes"] = []
      for _ in collections.OrderedDict(
          schema.attributes.items()
      ).values():
          json_attribute = {}
          json_attribute["name"] = _.name
          attribute_type = _get_attr_type(
              _.type, _.name, schema.name, schema.domain
          )
          if attribute_type:
              json_attribute["type"] = attribute_type
          elif "type" in json_attribute:
              del json_attribute["type"]
          json_attribute["required"] = _.required
          default_value = _get_attr_default_value(_.default_value)
          if default_value:
              json_attribute["default"] = default_value
          json_attribute["description"] = _format_description(
              _.description
          )
          json_schema["attributes"].append(json_attribute)
  
file_path: netron/tools/onnx_metadata.py
imports: import collections
  import json
  import os
  import re
  import onnx.backend.test.case
  import onnx.defs
label_desc: Use image node_id 7 for calling a global function with example usage: _update_attributes(json_schema, schema) without return types