code: def test_install_ray() -> None:
      install_ray_cmds = []
  
      def _mock_subprocess(inputs: List[str], stdout, stderr) -> None:
          install_ray_cmds.append(inputs)
  
      with mock.patch(
          "subprocess.check_call", side_effect=_mock_subprocess
      ), mock.patch.dict(
          "os.environ", {"BUILDKITE_BAZEL_CACHE_URL": "http://hi.com"}
      ):
          WindowsContainer("hi").install_ray()
          image = "029272617770.dkr.ecr.us-west-2.amazonaws.com/rayproject/citemp:unknown-hi"
          assert install_ray_cmds[-1] == [
              "docker",
              "build",
              "--build-arg",
              f"BASE_IMAGE={image}",
              "--build-arg",
              "BUILDKITE_BAZEL_CACHE_URL=http://hi.com",
              "-t",
              image,
              "-f",
              "C:\\workdir\\ci\\ray_ci\\windows\\tests.env.Dockerfile",
              "C:\\workdir",
          ]
  
file_path: ray/ci/ray_ci/test_windows_container.py
imports: import sys
  import pytest
  from unittest import mock
  from typing import List
  from ci.ray_ci.windows_container import WindowsContainer
  from ci.ray_ci.container import _DOCKER_ENV
label_desc: Use image node_id 1 for calling a global function with example usage: test_install_ray() without return types