code: def delete_cache(dirs: list):
      for dir in dirs:
          if os.path.isdir(dir):
              shutil.rmtree(dir)
  
file_path: ImageAI/test/test_custom_detection_training.py
imports: import os, sys
  import shutil
  import pytest
  from os.path import dirname
  from imageai.Detection.Custom import DetectionModelTrainer
label_desc: Use image node_id 1 for calling a global function with example usage: delete_cache(dirs) without return types