code: def _update_outputs(json_schema, outputs):
      json_schema["outputs"] = []
      for _ in outputs:
          json_output = {}
          json_output["name"] = _.name
          json_output["type"] = _.type_str
          if (
              _.option
              == onnx.defs.OpSchema.FormalParameterOption.Optional
          ):
              json_output["option"] = "optional"
          elif (
              _.option
              == onnx.defs.OpSchema.FormalParameterOption.Variadic
          ):
              json_output["list"] = True
          json_output["description"] = _format_description(
              _.description
          )
          json_schema["outputs"].append(json_output)
  
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 9 for calling a global function with example usage: _update_outputs(json_schema, outputs) without return types