code: def test_batch_executor_time() -> None:
      func = Function()
      executor = execution.MockedTimedExecutor(batch_mode=True)
      jobs = [executor.submit(func, k, 0) for k in range(3)]
      np.testing.assert_equal([j.release_time for j in jobs], [5, 4, 3])
      np.testing.assert_equal(
          [j.done() for j in jobs], [True, True, True]
      )
      for job in jobs:
          job.result()
      np.testing.assert_equal(executor.time, 5)
      job = executor.submit(func, 0, 0)
      np.testing.assert_equal(job.release_time, 10)
  
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 3 for calling a global function with example usage: test_batch_executor_time() without return types