class_docstr: Recorder Model Dataset Loader
class_docstr_tok: ["Recorder","Model","Dataset","Loader"]
docstr: Load, config and setup dataset.
  
  This dataset is for inference.
  
  Args:
      start_time :
          the start_time of underlying data
      end_time :
          the end_time of underlying data
      segments : dict
          the segments config for dataset
          Due to the time series dataset (TSDatasetH), the test segments maybe different from start_time and end_time
      unprepared_dataset: Optional[DatasetH]
          if user don't want to load dataset from recorder, please specify user's dataset
  
  Returns:
      DatasetH: the instance of DatasetH
docstr_tok: ["Load",",","config","and","setup","dataset",".","This","dataset","is","for","inference",".","Args",":","start_time",":","the","start_time","of","underlying","data","end_time",":","the","end_time","of","underlying","data","segments",":","dict","the","segments","config","for","dataset","Due","to","the","time","series","dataset","(","TSDatasetH",")",",","the","test","segments","maybe","different","from","start_time","and","end_time","unprepared_dataset",":","Optional","[","DatasetH","]","if","user","do","n't","want","to","load","dataset","from","recorder",",","please","specify","user","'s","dataset","Returns",":","DatasetH",":","the","instance","of","DatasetH"]
code: def get_dataset(
      self,
      start_time,
      end_time,
      segments=None,
      unprepared_dataset: Optional[DatasetH] = None,
  ) -> DatasetH:
      """
      Load, config and setup dataset.
  
      This dataset is for inference.
  
      Args:
          start_time :
              the start_time of underlying data
          end_time :
              the end_time of underlying data
          segments : dict
              the segments config for dataset
              Due to the time series dataset (TSDatasetH), the test segments maybe different from start_time and end_time
          unprepared_dataset: Optional[DatasetH]
              if user don't want to load dataset from recorder, please specify user's dataset
  
      Returns:
          DatasetH: the instance of DatasetH
  
      """
      if segments is None:
          segments = {"test": (start_time, end_time)}
      if unprepared_dataset is None:
          dataset: DatasetH = self.rec.load_object("dataset")
      else:
          dataset = unprepared_dataset
      dataset.config(
          handler_kwargs={
              "start_time": start_time,
              "end_time": end_time,
          },
          segments=segments,
      )
      dataset.setup_data(
          handler_kwargs={"init_type": DataHandlerLP.IT_LS}
      )
      return dataset
  
imports: from abc import ABCMeta, abstractmethod
  from typing import Optional
  import pandas
  from qlib import get_module_logger
  from qlib.data import D
  from qlib.data.dataset import Dataset, DatasetH, TSDatasetH
  from qlib.data.dataset.handler import DataHandlerLP
  from qlib.model import Model
  from qlib.utils import get_date_by_shift
  from qlib.workflow.recorder import Recorder
  from qlib.workflow.record_temp import SignalRecord
label_desc: Use image node_id 2 for calling the RMDLoader obj's underlying member method code with example usage: obj.get_dataset(start_time, end_time, segments, unprepared_dataset) and returns: dataset