code: def test_thresholding_discretization(
      arity: int, data: tp.List[float], expected: tp.List[float]
  ) -> None:
      with warnings.catch_warnings():
          warnings.simplefilter("ignore")
          output = discretization.threshold_discretization(data, arity)
      np.testing.assert_array_equal(output, expected)
  
file_path: nevergrad/nevergrad/parametrization/test_discretization.py
imports: import typing
  import warnings
  import numpy
  from ..common import testing
  from .None import discretization
label_desc: Use image node_id 1 for calling a global function with example usage: test_thresholding_discretization(arity, data, expected) without return types