class_docstr: A `Predictor` that always produces the same forecast.
  
  Parameters
  ----------
  samples
      Samples to use to construct SampleForecast objects for every
      prediction.
code: def __init__(self, samples: np.ndarray) -> None:
      super().__init__(samples.shape[1])
      self.samples = samples
  
file_path: gluonts/src/gluonts/model/trivial/constant.py
imports: import numpy
  from gluonts.core.component import validated
  from gluonts.dataset.common import DataEntry
  from gluonts.dataset.field_names import FieldName
  from gluonts.dataset.util import forecast_start
  from gluonts.model.forecast import SampleForecast
  from gluonts.model.predictor import RepresentablePredictor
label_desc: Use image node_id 1 to create a new ConstantPredictor object from inherited base classes: RepresentablePredictor with example: obj = ConstantPredictor(samples)