code: def setDoSample(self, value):
      """Sets whether or not to use sampling, use greedy decoding otherwise.
  
      Parameters
      ----------
      value : bool
          Whether or not to use sampling; use greedy decoding otherwise
      """
      return self._set(doSample=value)
  
imports: from pyspark.ml.param import Param, Params, TypeConverters
label_desc: Use image node_id 4 for calling a global function with example usage: setDoSample(value) and returns: self