code: def test_samplers(sampler_cls: tp.Type[sequences.Sampler]) -> None:
      sampler = sampler_cls(144, 4)
      np.testing.assert_equal(sampler.index, 0)
      output = sampler()
      np.testing.assert_equal(sampler.index, 1)
      np.testing.assert_equal(len(output), 144)
      assert min(output) > 0
      assert max(output) < 1
  
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 2 for calling a global function with example usage: test_samplers(sampler_cls) without return types