code: def fail_parent(self, pid_actor):
      ray.get(
          pid_actor.report_pid.remote(
              "fail_parent", os.getpid(), "FAILED"
          )
      )
      ray.get(
          task_finish_child.options(name="task_finish_child").remote(
              pid_actor
          )
      )
      task_sleep_child.options(name="task_sleep_child").remote(
          pid_actor
      )
  
      # Wait til child tasks run.
      def wait_fn():
          assert (
              ray.get(pid_actor.get_pids.remote()).get(
                  "task_sleep_child"
              )
              is not None
          )
          assert (
              list_tasks(filters=[("name", "=", "task_finish_child")])[
                  0
              ]["state"]
              == "FINISHED"
          )
          return True
  
      wait_for_condition(wait_fn)
      raise ValueError("expected to fail.")
  
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 1 for calling the Actor obj's underlying member method code with example usage: obj.fail_parent(pid_actor) and returns: True