code: def _check_docker_file_mounts(file_mounts: Dict[str, str]) -> None:
      """Checks if files are passed as file_mounts. This is a problem for Docker
      based clusters because when a file is bind-mounted in Docker, updates to
      the file on the host do not always propagate to the container. Using
      directories is recommended.
      """
      for remote, local in file_mounts.items():
          if Path(local).is_file():
              cli_logger.warning(
                  f"File Mount: ({remote}:{local}) refers to a file.\n To ensure"
                  " this mount updates properly, please use a directory."
              )
  
file_path: ray/python/ray/autoscaler/_private/docker.py
imports: from pathlib import Path
  from typing import Any, Dict
  from ray.autoscaler._private.cli_logger import cli_logger
label_desc: Use image node_id 1 for calling a global function with example usage: _check_docker_file_mounts(file_mounts) without return types