code: def _convert_code_blocks(description):
      lines = description.splitlines()
      output = []
      while len(lines) > 0:
          line = lines.pop(0)
          if (
              line.startswith(">>>")
              and len(lines) > 0
              and (
                  lines[0].startswith(">>>")
                  or lines[0].startswith("...")
              )
          ):
              output.append("```")
              output.append(line)
              while len(lines) > 0 and lines[0] != "":
                  output.append(lines.pop(0))
              output.append("```")
          else:
              output.append(line)
      return "\n".join(output)
  
file_path: netron/tools/keras_metadata.py
imports: import json
  import os
  import pydoc
  import re
label_desc: Use image node_id 4 for calling a global function with example usage: _convert_code_blocks(description) and returns: str