code: def nb_to_md(src_dir, nb_folder, dest_dir):
      notebooks_dir = src_dir / nb_folder
      logger.opt(colors=True).log(
          "INFO",
          "️<green><bold>Notebooks folder: {}</></>",
          notebooks_dir,
      )
  
      for file_path in os.listdir(notebooks_dir):
          dir_path = notebooks_dir
          file_name = file_path
          nb_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 != ".ipynb":
              continue
  
          # md_path = os.path.join(dest_dir, 'tutorial', file_name_no_ext + '.md')
          file_name_md = file_name_no_ext + ".md"
          # md_path = os.path.join(dest_dir, file_name_md)
          md_path = os.path.join(dest_dir, file_name_no_ext + ".md")
          images_path = "images"
  
          tutobooks.nb_to_md(nb_path, md_path, images_path)
          from_to = f"{file_name} -> {file_name_md}"
          logger.opt(colors=True).log(
              "INFO",
              "️<green><bold>Converting to Notebook: {}</></>",
              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 4 for calling a global function with example usage: nb_to_md(src_dir, nb_folder, dest_dir) without return types