code: def test_mocked_steady_executor(
      func: tp.Callable[..., tp.Any], expected: tp.List[int]
  ) -> None:
      executor = execution.MockedTimedExecutor(batch_mode=False)
      jobs: tp.List[execution.MockedTimedJob] = []
      for k in range(10):
          jobs.append(executor.submit(func, k, 0))
      results: tp.List[float] = []
      while jobs:
          finished = [j for j in jobs if j.done()]
          np.testing.assert_equal(len(finished), 1)
          results.append(finished[0].result())
          jobs.remove(finished[0])
      np.testing.assert_array_equal(results, expected)
  
file_path: nevergrad/nevergrad/benchmark/test_execution.py
imports: import numbers
  from operator import add
  import numpy
  import nevergrad
  import nevergrad.common.typing
  from nevergrad.common import testing
  from nevergrad.functions import ArtificialFunction
  from nevergrad.functions import ExperimentFunction
  from .None import execution
label_desc: Use image node_id 1 for calling a global function with example usage: test_mocked_steady_executor(func, expected) without return types