code: def copy_examples(examples_dir, destination_dir):
      """Copy the examples directory in the documentation.
  
      Prettify files by extracting the docstrings written in Markdown.
      """
      Path(destination_dir).mkdir(exist_ok=True)
      for file in os.listdir(examples_dir):
          if not file.endswith(".py"):
              continue
          module_path = os.path.join(examples_dir, file)
          docstring, starting_line = get_module_docstring(module_path)
          destination_file = os.path.join(
              destination_dir, file[:-2] + "md"
          )
          with open(
              destination_file, "w+", encoding="utf-8"
          ) as f_out, open(
              examples_dir / file, "r+", encoding="utf-8"
          ) as f_in:
              if docstring:
                  f_out.write(docstring + "\n\n")
  
              # skip docstring
              for _ in range(starting_line + 2):
                  next(f_in)
  
              f_out.write("```python\n")
              # next line might be empty.
              line = next(f_in)
              if line != "\n":
                  f_out.write(line)
  
              # copy the rest of the file.
              for line in f_in:
                  f_out.write(line)
              f_out.write("\n```")
  
          from_to = f"{file} -> {destination_file}"
          logger.opt(colors=True).log(
              "INFO",
              "️<green><bold>Copying Examples: {}</></>",
              from_to,
          )
  
file_path: icevision/docs/autogen.py
imports: import os
  from pathlib import Path
  import shutil
  from distutils.dir_util import copy_tree
  import keras_autodoc
  import tutobooks
  from loguru import logger
label_desc: Use image node_id 1 for calling a global function with example usage: copy_examples(examples_dir, destination_dir) without return types