code: def delete_all(*paths, whitelist=frozenset()):
      for item in paths:
          if item.is_dir():
              shutil.rmtree(item, ignore_errors=True)
          elif item.is_file() and item.name not in whitelist:
              item.unlink()
  
file_path: metaflow/metaflow/vendor.py
imports: import glob
  import shutil
  import subprocess
  import re
  from functools import partial
  from itertools import chain
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: delete_all() without return types