code: def setTopP(self, value):
      """Sets the top cumulative probability for vocabulary tokens.
  
      If set to float < 1, only the most probable tokens with probabilities
      that add up to ``topP`` or higher are kept for generation.
  
      Parameters
      ----------
      value : float
          Cumulative probability for vocabulary tokens
      """
      return self._set(topP=value)
  
imports: from pyspark.ml.param import Param, Params, TypeConverters
label_desc: Use image node_id 7 for calling a global function with example usage: setTopP(value) and returns: self