code: def _remove(path):
      from dvc.utils.fs import remove
  
      if os.name == "nt":
          # git.exe may hang for a while not permitting to remove temp dir
          os_retry = retry(5, errors=OSError, timeout=0.1)
          try:
              os_retry(remove)(path)
          except PermissionError:
              logger.warning(
                  "Failed to remove '%s'", relpath(path), exc_info=True
              )
      else:
          remove(path)
  
imports: import os
  import tempfile
  import threading
  from typing import TYPE_CHECKING, Dict, Optional, Tuple
  from funcy import retry, wrap_with
  from dvc.exceptions import NotDvcRepoError
  from dvc.log import logger
  from dvc.repo import Repo
  from dvc.scm import CloneError, map_scm_exception
  from dvc.utils import relpath
label_desc: Use image node_id 11 for calling a global function with example usage: _remove(path) without return types