code: def test_multiple_returns(init):
      @ray.remote
      class Foo(object):
          @ray.method(num_returns=2)
          def bar(self):
              return 1, 2
  
      pool = ActorPool([Foo.remote() for _ in range(2)])
      for _ in range(4):
          pool.submit(lambda a, v: a.bar.remote(), None)
  
      while pool.has_next():
          assert pool.get_next(timeout=None) == [1, 2]
  
file_path: ray/python/ray/tests/test_actor_pool.py
imports: import asyncio
  import sys
  import time
  from unittest.mock import MagicMock
  import pytest
  import ray
  from ray.util import ActorPool
label_desc: Use image node_id 10 for calling a global function with example usage: test_multiple_returns(init) and returns: int,  int