code: def weight_for_reset(arity: int) -> float:
      """p is an arbitrary probability that the provided arg will be sampled with the returned point"""
      p = (1 / arity) * 1.5
      w = float(np.log((p * (arity - 1)) / (1 - p)))
      return w
  
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 4 for calling a global function with example usage: weight_for_reset(arity) and returns: w