code: def verify_exit_by_idle_timeout():
      worker = get_worker_by_pid(pid)
      type = worker["exit_type"]
      detail = worker["exit_detail"]
      return type == "INTENDED_SYSTEM_EXIT" and "it was idle" 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 4 for calling a global function with example usage: verify_exit_by_idle_timeout() and returns: unknown