code: def add_bg_classes(nodes: List[minidom.Node]):
      for node in nodes:
          if "style" in node.attributes:
              s = node.attributes["style"].value
              if s.count("background-color"):
                  add_class(node, "has-background")
  
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 3 for calling a global function with example usage: add_bg_classes(nodes) without return types