code: def test_healthz_head(monkeypatch, ray_start_cluster):
      dashboard_port = find_free_port()
      h = ray_start_cluster.add_node(dashboard_port=dashboard_port)
      uri = f"http://localhost:{dashboard_port}/api/gcs_healthz"
      wait_for_condition(lambda: requests.get(uri).status_code == 200)
      h.all_processes[ray_constants.PROCESS_TYPE_GCS_SERVER][
          0
      ].process.kill()
      # It'll either timeout or just return an error
      try:
          wait_for_condition(
              lambda: requests.get(uri, timeout=1) != 200, timeout=4
          )
      except RuntimeError as e:
          assert "Read timed out" in str(e)
  
file_path: ray/python/ray/dashboard/modules/healthz/tests/test_healthz.py
imports: import sys
  import pytest
  import requests
  import ray._private.ray_constants
  from ray.tests.conftest import *
  from ray._private.test_utils import find_free_port, wait_for_condition
label_desc: Use image node_id 1 for calling a global function with example usage: test_healthz_head(monkeypatch, ray_start_cluster) without return types