code: def _update_snippets(json_schema, snippets):
      json_schema["examples"] = []
      for summary, code in sorted(snippets):
          lines = code.splitlines()
          while len(lines) > 0 and re.search("\\s*#", lines[-1]):
              lines.pop()
              if len(lines) > 0 and len(lines[-1]) == 0:
                  lines.pop()
          json_schema["examples"].append(
              {"summary": summary, "code": "\n".join(lines)}
          )
  
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 11 for calling a global function with example usage: _update_snippets(json_schema, snippets) without return types