code: def test_is_debugger_paused(shutdown_only):
      ray.init(num_cpus=1, _system_config=_SYSTEM_CONFIG)
  
      @ray.remote(max_retries=0)
      def f():
          import time
  
          # Pause 5 seconds inside debugger
          with ray._private.worker.global_worker.task_paused_by_debugger():
              time.sleep(5)
  
      def verify(num_paused):
          tasks = list_tasks(
              filters=[("is_debugger_paused", "=", "True")]
          )
          return len(tasks) == num_paused
  
      f_task = f.remote()  # noqa
  
      wait_for_condition(
          verify,
          timeout=20,
          retry_interval_ms=100,
          num_paused=1,
      )
  
      wait_for_condition(
          verify,
          timeout=20,
          retry_interval_ms=100,
          num_paused=0,
      )
  
imports: from collections import defaultdict
  from typing import Dict
  import os
  import pytest
  import sys
  import threading
  import time
  from ray._private.state_api_test_utils import verify_failed_task
  from ray.exceptions import RuntimeEnvSetupError
  from ray.runtime_env import RuntimeEnv
  import ray
  from ray.util.state.common import ListApiOptions, StateResource
  from ray._private.test_utils import raw_metrics, run_string_as_driver, run_string_as_driver_nonblocking, wait_for_condition
  from ray.util.state import StateApiClient, list_tasks
  from ray._private.worker import RayContext
label_desc: Use image node_id 11 for calling a global function with example usage: test_is_debugger_paused(shutdown_only) and returns: unknown