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