class_docstr: Data generator base class in order to allow composition.
class_docstr_tok: ["Data","generator","base","class","in","order","to","allow","composition","."]
docstr: Generate univariate mean shift random data sample.
docstr_tok: ["Generate","univariate","mean","shift","random","data","sample","."]
code: def sample(self):
      """Generate univariate mean shift random data sample."""
      return piecewise_normal(
          means=self.means,
          lengths=self.lengths,
          std_dev=self.std_dev,
          random_state=self.random_state,
      )
  
file_path: sktime/sktime/annotation/datagen.py
imports: from typing import Union
  import numpy
  import numpy.typing
  from sklearn.utils.validation import check_random_state
label_desc: Use image node_id 2 for calling the GenBasicGauss obj's underlying member method code with example usage: obj.sample() and returns: piecewise_normal