code: def test_sampler_values(
      name: str, seq1: tp.List[float], seq2: tp.List[float]
  ) -> None:
      budget = 4
      np.random.seed(12)
      sampler = samplers[name](3, budget)
      samples = list(sampler)
      for k, expected in enumerate([seq1, seq2]):
          np.testing.assert_almost_equal(
              samples[k], expected, decimal=3
          )
      np.testing.assert_raises(
          AssertionError, sampler
      )  # budget is over
      sampler.reinitialize()
      samples2 = list(sampler)
      testing.printed_assert_equal(samples2, samples)
  
file_path: nevergrad/nevergrad/optimization/test_sequences.py
imports: import typing
  import numpy
  from ..common import testing
  from .None import sequences
  from .sequences import samplers
label_desc: Use image node_id 4 for calling a global function with example usage: test_sampler_values(name, seq1, seq2) without return types