code: def test_inverse_threshold_discretization() -> None:
      arity = 4
      indexes = np.arange(arity)  # Test all possible indexes
      data = discretization.inverse_threshold_discretization(indexes, arity)  # type: ignore
      np.testing.assert_array_equal(
          discretization.threshold_discretization(data, arity), indexes
      )
  
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 2 for calling a global function with example usage: test_inverse_threshold_discretization() without return types