code: def test_run_with_array(name: str) -> None:
      data = [0.1, -0.1, 1, -0.2] * 3
      mutator = Mutator(np.random.RandomState(12))
      func = getattr(mutator, name)
      output1 = func(data)
      mutator.random_state.seed(12)
      output2 = func(np.array(data))
      np.testing.assert_equal(output1, output2)
  
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 4 for calling a global function with example usage: test_run_with_array(name) without return types