code: def test_list_named_actors_timeout(monkeypatch, shutdown_only):
      with monkeypatch.context() as m:
          # defer for 3s
          m.setenv(
              "RAY_testing_asio_delay_us",
              "ActorInfoGcsService.grpc_server.ListNamedActors=3000000:3000000",
          )
          ray.init(
              _system_config={"gcs_server_request_timeout_seconds": 1}
          )
  
          @ray.remote
          class A:
              pass
  
          a = A.options(name="hi").remote()
          print(a)
          with pytest.raises(ray.exceptions.GetTimeoutError):
              ray.util.list_named_actors()
  
imports: import os
  import signal
  import sys
  import threading
  import time
  import numpy
  import pytest
  import ray
  import ray._private.ray_constants
  import ray._private.utils
  from ray._private.ray_constants import DEBUG_AUTOSCALING_ERROR
  from ray._private.test_utils import Semaphore, get_error_message, get_log_batch, init_error_pubsub, run_string_as_driver_nonblocking, wait_for_condition
  from ray.cluster_utils import cluster_not_supported
  from ray.experimental.internal_kv import _internal_kv_get
label_desc: Use image node_id 9 for calling a global function with example usage: test_list_named_actors_timeout(monkeypatch, shutdown_only) without return types