code: def add_stroke_classes(nodes: List[minidom.Node]):
      for node in nodes:
          if "stroke" in node.attributes:
              stroke = node.attributes["stroke"].value
              if stroke not in STROKES:
                  continue
  
              node.removeAttribute("stroke")
              add_class(node, f"{STROKES[stroke]}-stroke")
  
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 4 for calling a global function with example usage: add_stroke_classes(nodes) without return types