code: def verify_exit_by_actor_init_failure():
      worker = get_worker_by_pid(pid)
      type = worker["exit_type"]
      detail = worker["exit_detail"]
      assert (
          type == "USER_ERROR"
          and "exception in the initialization method" in detail
      )
      return verify_failed_task(
          name="FaultyActor.__init__",
          error_type="TASK_EXECUTION_EXCEPTION",
          error_message="exception in the initialization method",
      )
  
imports: import asyncio
  import os
  import argparse
  import ray
  from ray._private.state_api_test_utils import verify_failed_task
  from ray.util.state import list_workers
  from ray._private.test_utils import wait_for_condition, get_ray_default_worker_file_path
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 6 for calling a global function with example usage: verify_exit_by_actor_init_failure() and returns: verify_failed_task