code: def test_skip_ray_installation() -> None:
      install_ray_called = []
  
      def _mock_install_ray(build_type: Optional[str]) -> None:
          install_ray_called.append(True)
  
      with mock.patch(
          "ci.ray_ci.linux_tester_container.LinuxTesterContainer.install_ray",
          side_effect=_mock_install_ray,
      ):
          assert len(install_ray_called) == 0
          LinuxTesterContainer("team", skip_ray_installation=False)
          assert len(install_ray_called) == 1
          LinuxTesterContainer("team", skip_ray_installation=True)
          assert len(install_ray_called) == 1
  
imports: import json
  import os
  import platform
  import sys
  import pytest
  import tempfile
  from unittest import mock
  from typing import List, Optional
  from ci.ray_ci.linux_tester_container import LinuxTesterContainer
  from ci.ray_ci.utils import chunk_into_n
  from ci.ray_ci.container import _DOCKER_ECR_REPO, _RAYCI_BUILD_ID
label_desc: Use image node_id 4 for calling a global function with example usage: test_skip_ray_installation() without return types