code: def _update_examples(schema, value):
      if "examples" in schema:
          del schema["examples"]
      value = _convert_code_blocks(value)
      lines = value.splitlines()
      code = []
      summary = []
      while len(lines) > 0:
          line = lines.pop(0)
          if len(line) > 0:
              if line.startswith("```"):
                  while len(lines) > 0:
                      line = lines.pop(0)
                      if line == "```":
                          break
                      code.append(line)
              else:
                  summary.append(line)
          if len(code) > 0:
              example = {}
              if len(summary) > 0:
                  example["summary"] = "\n".join(summary)
              example["code"] = "\n".join(code)
              if not "examples" in schema:
                  schema["examples"] = []
              schema["examples"].append(example)
              code = []
              summary = []
  
file_path: netron/tools/keras_metadata.py
imports: import json
  import os
  import pydoc
  import re
label_desc: Use image node_id 9 for calling a global function with example usage: _update_examples(schema, value) without return types