code: def load_notebooks():
      """Load notebooks from the /example directory."""
      notebooks = glob.glob("../examples/*.ipynb")
  
      examples = []
      for notebook in notebooks:
          notebook_name = os.path.splitext(os.path.split(notebook)[1])[
              0
          ]
          notebook_clean_name = notebook_name.lower().replace(" ", "_")
          if notebook_clean_name != "quick_start":
              examples.append(notebook_clean_name)
              print("Updating {}...".format(notebook_name))
              pathlib.Path("source/examples").mkdir(exist_ok=True)
              shutil.copyfile(
                  notebook,
                  "source/examples/" + notebook_clean_name + ".ipynb",
              )
          else:
              print("Updating {}...".format(notebook_name))
              pathlib.Path("source/_notebooks").mkdir(exist_ok=True)
              shutil.copyfile(
                  notebook,
                  "source/_notebooks/" + notebook_clean_name + ".ipynb",
              )
  
      # Insert links to the examples ToC
      print("Finalizing examples Page")
      text = open("source/examples/index.rst", "r").read()
      text = re.sub(
          r"(:maxdepth: 1).*(\.\.\s_)",
          r"\1\n\n"
          + "\n".join(
              ["   ../examples/" + name for name in sorted(examples)]
          )
          + r"\n\2",
          text,
          flags=re.S,
      )
      open("source/examples/index.rst", "w").write(text)
  
imports: import re
  import os
  import shutil
  import glob
  import pathlib
label_desc: Use image node_id 1 for calling a global function with example usage: load_notebooks() without return types