class_docstr: Dataset for use in sktime deep learning forecasters.
code: def __init__(self, y, seq_len, fh):
      self.y = y.values
      self.seq_len = seq_len
      self.fh = fh
  
imports: from abc import ABC
  import numpy
  import pandas
  from sktime.forecasting.base import BaseForecaster
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 1 to create a new PyTorchTrainDataset object  with example: obj = PyTorchTrainDataset(y, seq_len, fh)