code: def test_no_warning_many_actor_tasks_queued_when_sequential(
      shutdown_only, sync: bool
  ):
      ray.init(num_cpus=1)
      p = init_error_pubsub()
  
      @ray.remote(num_cpus=1)
      class SyncFoo:
          def f(self):
              return 1
  
      @ray.remote(num_cpus=1)
      class AsyncFoo:
          async def f(self):
              return 1
  
      Foo = SyncFoo if sync else AsyncFoo
      a = Foo.remote()
      for _ in range(10000):
          assert ray.get(a.f.remote()) == 1
      errors = get_error_message(
          p, 1, ray_constants.EXCESS_QUEUEING_WARNING, timeout=1
      )
      assert len(errors) == 0
  
imports: import os
  import signal
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  import ray._private.ray_constants
  import ray._private.utils
  from ray._private.test_utils import SignalActor, convert_actor_state, get_error_message, init_error_pubsub, wait_for_condition
  from ray.exceptions import GetTimeoutError, RayActorError, RayTaskError
label_desc: Use image node_id 19 for calling a global function with example usage: test_no_warning_many_actor_tasks_queued_when_sequential(shutdown_only, sync) and returns: int, int