code: def test_actor_failure_no_wait(ray_start_regular, tmp_path):
      p = tmp_path / "a_pid"
      time.sleep(1)
  
      # Make sure the request will fail immediately without waiting for the death info
      @ray.remote(max_restarts=1, max_task_retries=0)
      class A:
          def __init__(self):
              pid = os.getpid()
              # The second time start, it'll block,
              # so that we'll know the actor is restarting.
              if p.exists():
                  p.write_text(str(pid))
                  time.sleep(100000)
              else:
                  p.write_text(str(pid))
  
          def p(self):
              time.sleep(100000)
  
          def pid(self):
              return os.getpid()
  
      a = A.remote()
      pid = ray.get(a.pid.remote())
      t = a.p.remote()
      os.kill(int(pid), SIGKILL)
      with pytest.raises(ray.exceptions.RayActorError):
          # Make sure it'll return within 1s
          ray.get(t)
  
imports: import os
  import sys
  import signal
  import threading
  import json
  from pathlib import Path
  import ray
  import numpy
  import pytest
  import psutil
  import time
  from ray._private.test_utils import SignalActor, wait_for_pid_to_exit, wait_for_condition, run_string_as_driver_nonblocking
label_desc: Use image node_id 8 for calling a global function with example usage: test_actor_failure_no_wait(ray_start_regular, tmp_path) and returns: os