code: def test_execute_async_all(backend):
      """Makes sure wait can be reinplemented as a async_get"""
      all_results = []
  
      with backend(5) as executor:
          futures = [
              executor.submit(function, 1, 2, i) for i in range(10)
          ]
          all_results = executor.wait(futures)
      all_results.sort()
  
      # Async version
      all_results_async = []
      with backend(5) as executor:
          futures = [
              executor.submit(function, 1, 2, i) for i in range(10)
          ]
  
          results = True
          while results:
              results = executor.async_get(futures, timeout=1)
              all_results_async.extend(results)
  
      all_results_async = [a.value for a in all_results_async]
      all_results_async.sort()
      assert all_results_async == all_results
  
imports: import os
  import time
  import pytest
  from orion.executor.base import AsyncException, ExecutorClosed, executor_factory
  from orion.executor.dask_backend import HAS_DASK, Dask
  from orion.executor.multiprocess_backend import PoolExecutor
  from orion.executor.ray_backend import HAS_RAY, Ray
  from orion.executor.single_backend import SingleExecutor
label_desc: Use image node_id 16 for calling a global function with example usage: test_execute_async_all(backend) without return types