code: def test_actor_worker_dying_nothing_in_progress(ray_start_regular):
      @ray.remote(max_restarts=0)
      class Actor:
          def getpid(self):
              return os.getpid()
  
      a = Actor.remote()
      pid = ray.get(a.getpid.remote())
      os.kill(pid, 9)
      time.sleep(0.1)
      task2 = a.getpid.remote()
      with pytest.raises(Exception):
          ray.get(task2)
  
imports: import os
  import signal
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  import ray._private.ray_constants
  import ray._private.utils
  from ray._private.test_utils import SignalActor, convert_actor_state, get_error_message, init_error_pubsub, wait_for_condition
  from ray.exceptions import GetTimeoutError, RayActorError, RayTaskError
label_desc: Use image node_id 11 for calling a global function with example usage: test_actor_worker_dying_nothing_in_progress(ray_start_regular) and returns: os