code: def py_to_nb_md(dest_dir):
      for file_path in os.listdir("py/"):
          dir_path = "py"
          file_name = file_path
          py_path = os.path.join(dir_path, file_path)
          file_name_no_ext = os.path.splitext(file_name)[0]
          ext = os.path.splitext(file_name)[1]
  
          if ext != ".py":
              continue
  
          nb_path = os.path.join("ipynb", file_name_no_ext + ".ipynb")
          md_path = os.path.join(
              dest_dir, "tutorial", file_name_no_ext + ".md"
          )
  
          tutobooks.py_to_md(py_path, nb_path, md_path, "templates/img")
  
          github_repo_dir = "airctic/icevision/blob/master/docs/"
          with open(md_path, "r") as md_file:
              button_lines = [
                  ":material-link: "
                  "[**View in Colab**](https://colab.research.google.com/github/"
                  + github_repo_dir
                  + "ipynb/"
                  + file_name_no_ext
                  + ".ipynb"
                  + ")   &nbsp; &nbsp;"
                  # + '<span class="k-dot">•</span>'
                  + ":octicons-octoface: "
                  "[**GitHub source**](https://github.com/"
                  + github_repo_dir
                  + "py/"
                  + file_name_no_ext
                  + ".py)",
                  "\n",
              ]
              md_content = "".join(button_lines) + "\n" + md_file.read()
  
          with open(md_path, "w") as md_file:
              md_file.write(md_content)
  
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 3 for calling a global function with example usage: py_to_nb_md(dest_dir) without return types