code: def test_kill(ray_start_regular_shared):
      @ray.remote
      class Actor:
          def hang(self):
              while True:
                  time.sleep(1)
  
      actor = Actor.remote()
      result = actor.hang.remote()
      ready, _ = ray.wait([result], timeout=0.5)
      assert len(ready) == 0
      kill_actor_and_wait_for_failure(actor)
  
      with pytest.raises(ray.exceptions.RayActorError):
          ray.get(result)
  
      with pytest.raises(ValueError):
          ray.kill("not_an_actor_handle")
  
imports: import os
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  from ray.util.state import list_actors
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, convert_actor_state, kill_actor_and_wait_for_failure, make_global_state_accessor, run_string_as_driver, wait_for_condition, wait_for_pid_to_exit
  from ray._private.ray_constants import gcs_actor_scheduling_enabled
  from ray.experimental.internal_kv import _internal_kv_get, _internal_kv_put
label_desc: Use image node_id 26 for calling a global function with example usage: test_kill(ray_start_regular_shared) without return types