code: def _all_actors_dead():
      return all(
          actor["State"]
          == convert_actor_state(gcs_utils.ActorTableData.DEAD)
          for actor in list(ray._private.state.actors().values())
      )
  
imports: import copy
  import logging
  import os
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, convert_actor_state, kill_actor_and_wait_for_failure, put_object, wait_for_condition, skip_flaky_core_test_premerge
label_desc: Use image node_id 17 for calling a global function with example usage: _all_actors_dead() and returns: all