code: def test_deterministic_data_setter() -> None:
      instru = ng.p.Instrumentation(
          ng.p.Choice([0, 1, 2, 3]), y=ng.p.Choice([0, 1, 2, 3])
      ).set_name("")
      ifunc = base.ExperimentFunction(_Callable(), instru)
      data = [0.01, 0, 0, 0, 0.01, 0, 0, 0]
      for _ in range(20):
          child = ifunc.parametrization.spawn_child()
          with ng.p.helpers.deterministic_sampling(child):
              args, kwargs = child.set_standardized_data(data).value
          testing.printed_assert_equal(args, [0])
          testing.printed_assert_equal(kwargs, {"y": 0})
      arg_sum, kwarg_sum = 0, 0
      for _ in range(24):
          args, kwargs = (
              ifunc.parametrization.spawn_child()
              .set_standardized_data(data)
              .value
          )
          arg_sum += args[0]
          kwarg_sum += kwargs["y"]
      assert arg_sum != 0
      assert kwarg_sum != 0
  
imports: import pickle
  import numpy
  import pytest
  import nevergrad
  from nevergrad.common import testing
  from nevergrad.functions import ArtificialFunction
  import nevergrad.common.typing
  from .None import base
  from .None import helpers
label_desc: Use image node_id 7 for calling a global function with example usage: test_deterministic_data_setter() without return types