code: def __init__(
      self,
      corpus: TimeSeriesCorpus,
      windows: List[Tuple[int, int]],
      horizon: int,
      context: Optional[int] = None,
      gap: int = 0,
  ) -> None:
      super(ForecastingDataset, self).__init__(
          corpus=corpus,
          windows=windows,
      )
      self.horizon = horizon
      self.context = context
      self.gap = gap
  
file_path: gluonts/src/gluonts/nursery/daf/tslib/dataset/forecasting.py
imports: from __future__ import annotations
  from typing import List, Tuple, Dict, Optional
  import numpy
  from tqdm import tqdm
  from .timeseries import TimeSeries, TimeSeriesCorpus
  from .windows import WindowsDataset
label_desc: Use image node_id 1 to create a new ForecastingDataset object from inherited base classes: WindowsDataset with example: obj = ForecastingDataset(corpus, windows, horizon, context, gap)