code: def test_sleeper() -> None:
      min_sleep = 1e-5
      sleeper = tools.Sleeper(min_sleep=min_sleep)
      np.testing.assert_almost_equal(
          sleeper._get_advised_sleep_duration(), min_sleep, decimal=5
      )
      sleeper.start_timer()
      # not precise enough to test for exact time
      # np.testing.assert_almost_equal(sleeper._get_advised_sleep_duration(), min_sleep, decimal=5)
      sleeper.stop_timer()
  
file_path: nevergrad/nevergrad/common/test_tools.py
imports: import os
  import typing
  import numpy
  from .None import tools
  from .None import testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_sleeper() without return types