code: def exists(path: str) -> bool:
      """Replacement for `os.path.exists` which works for host mapped volumes
      on Windows containers
      """
      try:
          os.lstat(path)
      except OSError:
          return False
      return True
  
imports: from __future__ import annotations
  import errno
  import os
  import site
  import stat
  import sys
  import tempfile
  import warnings
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Any, Iterator, Optional
  import platformdirs
  from .utils import deprecation
label_desc: Use image node_id 12 for calling a global function with example usage: exists(path) and returns: True, False