class_docstr: Abstract class representing predictor objects.
  Parameters
  ----------
  prediction_length
      Prediction horizon.
class_docstr_tok: ["Abstract","class","representing","predictor","objects",".","Parameters","--","--","--","--","--","prediction_length","Prediction","horizon","."]
docstr: Compute forecasts for the time series in the provided dataset.
  This method is not implemented in this abstract class; please
  use one of the subclasses.
  Parameters
  ----------
  dataset
      The dataset containing the time series to predict.
  Returns
  -------
  Iterator[Forecast]
      Iterator over the forecasts, in the same order as the dataset
      iterable was provided.
docstr_tok: ["Compute","forecasts","for","the","time","series","in","the","provided","dataset",".","This","method","is","not","implemented","in","this","abstract","class",";","please","use","one","of","the","subclasses",".","Parameters","--","--","--","--","--","dataset","The","dataset","containing","the","time","series","to","predict",".","Returns","--","--","--","-","Iterator","[","Forecast","]","Iterator","over","the","forecasts",",","in","the","same","order","as","the","dataset","iterable","was","provided","."]
code: def predict(self, dataset: Dataset, **kwargs) -> Iterator[Forecast]:
      """
      Compute forecasts for the time series in the provided dataset.
      This method is not implemented in this abstract class; please
      use one of the subclasses.
      Parameters
      ----------
      dataset
          The dataset containing the time series to predict.
      Returns
      -------
      Iterator[Forecast]
          Iterator over the forecasts, in the same order as the dataset
          iterable was provided.
      """
      raise NotImplementedError
  
imports: import itertools
  import json
  import logging
  import multiprocessing
  import sys
  import traceback
  from pathlib import Path
  from pydoc import locate
  from tempfile import TemporaryDirectory
  from typing import TYPE_CHECKING, Callable, Iterator, Optional, Dict, Any
  import numpy
  import gluonts
  from gluonts.core import fqname_for
  from gluonts.core.component import equals, from_hyperparameters
  from gluonts.core.serde import dump_json, load_json
  from gluonts.dataset.common import DataEntry, Dataset
  from gluonts.model.forecast import Forecast
label_desc: Use image node_id 2 for calling the Predictor obj's underlying member method code with example usage: obj.predict(dataset) without return types