code: def get_code_blocks(docstring):
      code_blocks = {}
      tmp = docstring[:]
      while "```" in tmp:
          tmp = tmp[tmp.find("```") :]
          index = tmp[3:].find("```") + 6
          snippet = tmp[:index]
          # Place marker in docstring for later reinjection.
          token = f"$KERAS_AUTODOC_CODE_BLOCK_{len(code_blocks)}"
          docstring = docstring.replace(snippet, token)
          code_blocks[token] = snippet
          tmp = tmp[index:]
  
      return code_blocks, docstring
  
file_path: autokeras/docs/keras_autodoc/docstring.py
imports: import itertools
  import re
  from sphinx.util.typing import stringify
  from .None import utils
label_desc: Use image node_id 1 for calling a global function with example usage: get_code_blocks(docstring) and returns: code_blocks,  docstring