code: def test_base_functions(
      x: tp.List[float],
      onemax_expected: float,
      leadingones_expected: float,
      jump_expected: float,
  ) -> None:
      for name, expected in [
          ("onemax", onemax_expected),
          ("leadingones", leadingones_expected),
          ("jump", jump_expected),
      ]:
          func = corefuncs.DiscreteFunction(name)
          np.testing.assert_equal(
              func(x), expected, err_msg=f"Wrong output for {name}"
          )
  
file_path: nevergrad/nevergrad/functions/test_corefuncs.py
imports: import typing
  import numpy
  from nevergrad.common import testing
  from .None import corefuncs
label_desc: Use image node_id 3 for calling a global function with example usage: test_base_functions(x, onemax_expected, leadingones_expected, jump_expected) without return types