code: def test_check_health_version_check(shutdown_only):
      with mock.patch("ray.__version__", "FOO-VERSION"):
          conn = ray.init()
          addr = conn.address_info["address"]
          assert check_health(addr, skip_version_check=True)
          with pytest.raises(RuntimeError):
              check_health(addr)
  
imports: import mock
  import subprocess
  import sys
  import pytest
  import ray
  from ray._raylet import check_health
  from ray._private.test_utils import Semaphore, client_test_enabled, wait_for_condition, get_gcs_memory_used
  from ray.experimental.internal_kv import _internal_kv_list
label_desc: Use image node_id 8 for calling a global function with example usage: test_check_health_version_check(shutdown_only) without return types