docs: def remove(path):
      """Wrapper that switches between os.remove and shutil.rmtree depending on
      whether the provided path is a file or directory.
  
      """
      if not os.path.exists(path):
          return
  
      if os.path.isdir(path):
          return shutil.rmtree(path)
  
      if os.path.isfile(path):
          return os.remove(path)