code: def mkdir(
      path, exist_ok=False, parents=False, overwrite=False
  ) -> Path:
      path = Path(path)
  
      if path.exists() and overwrite:
          shutil.rmtree(path)
  
      path.mkdir(exist_ok=exist_ok, parents=parents)
      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 3 for calling a global function with example usage: mkdir(path, exist_ok, parents, overwrite) and returns: path