code: def noisy_inverse_threshold_discretization(
      indexes: tp.List[int], arity: int = 2, gen: tp.Any = None
  ) -> np.ndarray:
      indexes_arr = np.array(indexes, copy=True)
      pdf_bin_size = 1 / arity
      # We take a random point in the bin.
      return scipy.stats.norm.ppf(
          indexes_arr * pdf_bin_size + gen.rand() * pdf_bin_size
      )
  
file_path: nevergrad/nevergrad/parametrization/discretization.py
imports: import warnings
  import numpy
  import scipy.stats
  import nevergrad.common.typing
label_desc: Use image node_id 3 for calling a global function with example usage: noisy_inverse_threshold_discretization(indexes, arity, gen) and returns: scipy