code: def test_max_actors():
      # TODO (Alex): Dynamically set this based on number of cores
      cpus_per_actor = 0.25
  
      @ray.remote(num_cpus=cpus_per_actor)
      class Actor:
          def foo(self):
              pass
  
      actors = [
          Actor.remote()
          for _ in tqdm.trange(
              MAX_ACTORS_IN_CLUSTER, desc="Launching actors"
          )
      ]
  
      done = ray.get([actor.foo.remote() for actor in actors])
      for result in done:
          assert result is None
  
file_path: ray/release/benchmarks/distributed/test_many_actors.py
imports: import os
  import ray
  import ray._private.test_utils
  import time
  import tqdm
  from dashboard_test import DashboardTestAtScale
  from ray._private.state_api_test_utils import summarize_worker_startup_time
label_desc: Use image node_id 1 for calling a global function with example usage: test_max_actors() without return types