code: def test_fault_tolerance_nested_actors_failed(shutdown_only):
      ray.init(_system_config=_SYSTEM_CONFIG)
      pid_actor = PidActor.remote()
      # Test nested actor tasks
      with pytest.raises(ray.exceptions.RayTaskError):
          a = Actor.remote()
          ray.get(a.ready.remote())
          ray.get(
              a.child_actor.options(name="child_actor").remote(
                  pid_actor
              )
          )
  
      # Wait for all tasks to finish:
      # 4 = child_actor + children + task_finish_child + task_sleep_child
      wait_for_condition(
          verify_tasks_running_or_terminated,
          task_pids=ray.get(pid_actor.get_pids.remote()),
          expect_num_tasks=4,
      )
  
imports: import asyncio
  from collections import defaultdict
  import os
  from typing import Dict
  import pytest
  import sys
  import time
  from ray._private import ray_constants
  from functools import reduce
  import ray
  from ray._private.state_api_test_utils import PidActor, get_state_api_manager, verify_tasks_running_or_terminated, verify_failed_task
  from ray.util.state.common import ListApiOptions, StateResource
  from ray._private.test_utils import async_wait_for_condition_async_predicate, run_string_as_driver, run_string_as_driver_nonblocking, wait_for_condition
  from ray.util.state import StateApiClient, list_actors, list_jobs, list_tasks
label_desc: Use image node_id 11 for calling a global function with example usage: test_fault_tolerance_nested_actors_failed(shutdown_only) without return types