code: def _update_references(schema, value):
      if "references" in schema:
          del schema["references"]
      references = []
      reference = ""
      lines = value.splitlines()
      for line in lines:
          if line.lstrip().startswith("- "):
              if len(reference) > 0:
                  references.append(reference)
              reference = line.lstrip().lstrip("- ")
          else:
              if line.startswith("  "):
                  line = line[2:]
              reference = " ".join([reference, line.strip()])
      if len(reference) > 0:
          references.append(reference)
      for reference in references:
          if not "references" in schema:
              schema["references"] = []
          schema["references"].append({"description": reference})
  
file_path: netron/tools/keras_metadata.py
imports: import json
  import os
  import pydoc
  import re
label_desc: Use image node_id 10 for calling a global function with example usage: _update_references(schema, value) without return types