code: def verify_exit_by_pg_removed():
      worker = get_worker_by_pid(pid)
      type = worker["exit_type"]
      detail = worker["exit_detail"]
      assert verify_failed_task(
          name="sleep",
          error_type="ACTOR_DIED",
          error_message=[
              "INTENDED_SYSTEM_EXIT",
              "placement group was removed",
          ],
      )
      return (
          type == "INTENDED_SYSTEM_EXIT"
          and "placement group was removed" in detail
      )
  
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 5 for calling a global function with example usage: verify_exit_by_pg_removed() and returns: unknown