code: def test_from_actors(ray_start_regular_shared):
      @ray.remote
      class CustomWorker(ParallelIteratorWorker):
          def __init__(self, data):
              ParallelIteratorWorker.__init__(self, data, False)
  
      a = CustomWorker.remote([1, 2])
      b = CustomWorker.remote([3, 4])
      it = from_actors([a, b])
      assert repr(it) == "ParallelIterator[from_actors[shards=2]]"
      assert list(it.gather_sync()) == [1, 3, 2, 4]
  
imports: import sys
  import time
  import collections
  from collections import Counter
  import pytest
  import ray
  from ray.util.iter import from_items, from_iterators, from_range, from_actors, ParallelIteratorWorker, LocalIterator
  from ray._private.test_utils import Semaphore
label_desc: Use image node_id 11 for calling a global function with example usage: test_from_actors(ray_start_regular_shared) without return types