code: def test_is_debugger_paused_actor(shutdown_only, actor_concurrency):
      ray.init(_system_config=_SYSTEM_CONFIG)
  
      @ray.remote
      class TestActor:
          def main_task(self, i):
              if i == 0:
                  import time
  
                  # Pause 5 seconds inside debugger
                  with ray._private.worker.global_worker.task_paused_by_debugger():
                      time.sleep(5)
  
      def verify(expected_task_name):
          tasks = list_tasks(
              filters=[("is_debugger_paused", "=", "True")]
          )
          return (
              len(tasks) == 1
              and f"{expected_task_name}_0" in tasks[0]["name"]
          )
  
      test_actor = TestActor.options(
          max_concurrency=actor_concurrency
      ).remote()
      refs = [  # noqa
          test_actor.main_task.options(
              name=f"TestActor.main_task_{i}"
          ).remote(i)
          for i in range(20)
      ]
  
      wait_for_condition(
          verify, expected_task_name="TestActor.main_task"
      )
  
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 12 for calling a global function with example usage: test_is_debugger_paused_actor(shutdown_only, actor_concurrency) and returns: unknown