code: def test_significantly_mutate() -> None:
      rng = np.random.RandomState(12)
      output = Mutator(rng).significantly_mutate(0.3, 2)
      np.testing.assert_almost_equal(output, -0.68142, decimal=4)
      output = Mutator(rng).significantly_mutate(0.3, 2)
      np.testing.assert_almost_equal(output, -1.70073, decimal=4)
      output = Mutator(rng).significantly_mutate(0.3, 3)
      np.testing.assert_almost_equal(output, 0.75314, decimal=4)
      for _ in range(10):
          output = Mutator(rng).significantly_mutate(0.1, 2)
          np.testing.assert_array_less([output], [0.0])
          output = Mutator(rng).significantly_mutate(output, 2)
          np.testing.assert_array_less([0.0], [output])
  
file_path: nevergrad/nevergrad/optimization/test_mutations.py
imports: import typing
  import numpy
  import nevergrad
  from nevergrad.common import testing
  from .None import utils
  from .mutations import Mutator
  from .differentialevolution import Crossover
label_desc: Use image node_id 1 for calling a global function with example usage: test_significantly_mutate() without return types