code: def create_tmp_dir(name: str, overwrite: bool = True) -> Path:
      path = Path("/tmp") / name
  
      if path.exists() and overwrite:
          shutil.rmtree(path)
  
      path.mkdir(parents=True)
  
      return path
  
file_path: icevision/icevision/utils/io.py
imports: import numpy
  import shutil
  from pathlib import Path
  from .utils import pbar
label_desc: Use image node_id 2 for calling a global function with example usage: create_tmp_dir(name, overwrite) and returns: path