code: def test_max_actors_launch(cpus_per_actor, total_actors):
      @ray.remote(num_cpus=cpus_per_actor)
      class Actor:
          def foo(self):
              pass
  
      print("Start launch actors")
      actors = [
          Actor.options(max_restarts=-1).remote()
          for _ in range(total_actors)
      ]
      return actors
  
file_path: ray/release/benchmarks/distributed/many_nodes_tests/actor_test.py
imports: import argparse
  import os
  import math
  from time import sleep, perf_counter
  import json
  import ray
  import psutil
label_desc: Use image node_id 1 for calling a global function with example usage: test_max_actors_launch(cpus_per_actor, total_actors) and returns: actors