code: def main():
      diagrams_path = HOME / "diagrams"
      docs_path = HOME / "docs"
  
      for p in recurse(diagrams_path):
          source_path = p
          p = p.relative_to(diagrams_path)
          dest_path = docs_path / p
          if not dest_path.parent.exists():
              dest_path.parent.mkdir(parents=True)
  
          with monit.section(str(p)):
              if source_path.suffix == ".svg":
                  parse(source_path, dest_path)
              else:
                  shutil.copy(str(source_path), str(dest_path))
  
file_path: annotated_deep_learning_paper_implementations/utils/diagrams.py
imports: import shutil
  from pathlib import Path
  from typing import List
  from xml.dom import minidom
  from labml import monit
label_desc: Use image node_id 9 for calling a global function with example usage: main() without return types