code: def delete_cache(paths: List[str]):
      for path in paths:
          if os.path.isfile(path):
              os.remove(path)
          elif os.path.isdir(path):
              shutil.rmtree(path)
  
file_path: ImageAI/test/test_custom_object_detection.py
imports: import os, sys
  from typing import List
  import shutil
  import cv2
  import uuid
  from PIL import Image
  import numpy
  import pytest
  from os.path import dirname
  from imageai.Detection.Custom import CustomObjectDetection
label_desc: Use image node_id 1 for calling a global function with example usage: delete_cache(paths) without return types