code: def test_multiple_actors(ray_start_regular_shared):
      @ray.remote
      class Counter:
          def __init__(self, value):
              self.value = value
  
          def increase(self):
              self.value += 1
              return self.value
  
          def reset(self):
              self.value = 0
  
      num_actors = 5
      num_increases = 50
      # Create multiple actors.
      actors = [Counter.remote(i) for i in range(num_actors)]
      results = []
      # Call each actor's method a bunch of times.
      for i in range(num_actors):
          results += [
              actors[i].increase.remote() for _ in range(num_increases)
          ]
      result_values = ray.get(results)
      for i in range(num_actors):
          v = result_values[
              (num_increases * i) : (num_increases * (i + 1))
          ]
          assert v == list(range(i + 1, num_increases + i + 1))
  
      # Reset the actor values.
      [actor.reset.remote() for actor in actors]
  
      # Interweave the method calls on the different actors.
      results = []
      for j in range(num_increases):
          results += [actor.increase.remote() for actor in actors]
      result_values = ray.get(results)
      for j in range(num_increases):
          v = result_values[(num_actors * j) : (num_actors * (j + 1))]
          assert v == num_actors * [j + 1]
  
imports: import datetime
  import os
  import random
  import sys
  import tempfile
  import numpy
  import pytest
  import ray
  from ray import cloudpickle
  from ray._private import ray_constants
  from ray._private.test_utils import client_test_enabled, wait_for_condition, wait_for_pid_to_exit
  from ray.actor import ActorClassInheritanceException
  from ray.tests.client_test_utils import create_remote_signal_actor
  from ray._private.test_utils import SignalActor
  import setproctitle
label_desc: Use image node_id 32 for calling a global function with example usage: test_multiple_actors(ray_start_regular_shared) and returns: self