code: def test_check_health(shutdown_only):
      assert not check_health("127.0.0.1:8888")
      # Should not raise error: https://github.com/ray-project/ray/issues/38785
      assert not check_health("ip:address:with:colon:name:8265")
  
      with pytest.raises(ValueError):
          check_health("bad_address_no_port")
  
      conn = ray.init()
      addr = conn.address_info["address"]
      assert 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 7 for calling a global function with example usage: test_check_health(shutdown_only) without return types