class_docstr: Dataset with Data(H)andler
  
  User should try to put the data preprocessing functions into handler.
  Only following data processing functions should be placed in Dataset:
  
  - The processing is related to specific model.
  
  - The processing is related to data split.
class_docstr_tok: ["Dataset","with","Data","(","H",")","andler","User","should","try","to","put","the","data","preprocessing","functions","into","handler",".","Only","following","data","processing","functions","should","be","placed","in","Dataset",":","-","The","processing","is","related","to","specific","model",".","-","The","processing","is","related","to","data","split","."]
docstr: Initialize the DatasetH
  
  Parameters
  ----------
  handler_kwargs : dict
      Config of DataHandler, which could include the following arguments:
  
      - arguments of DataHandler.conf_data, such as 'instruments', 'start_time' and 'end_time'.
  
  kwargs : dict
      Config of DatasetH, such as
  
      - segments : dict
          Config of segments which is same as 'segments' in self.__init__
docstr_tok: ["Initialize","the","DatasetH","Parameters","--","--","--","--","--","handler_kwargs",":","dict","Config","of","DataHandler",",","which","could","include","the","following","arguments",":","-","arguments","of","DataHandler.conf_data",",","such","as","'instruments","'",",","'start_time","'","and","'end_time","'",".","kwargs",":","dict","Config","of","DatasetH",",","such","as","-","segments",":","dict","Config","of","segments","which","is","same","as","'segments","'","in","self.__init__"]
code: def config(self, handler_kwargs: dict = None, **kwargs):
      """
      Initialize the DatasetH
  
      Parameters
      ----------
      handler_kwargs : dict
          Config of DataHandler, which could include the following arguments:
  
          - arguments of DataHandler.conf_data, such as 'instruments', 'start_time' and 'end_time'.
  
      kwargs : dict
          Config of DatasetH, such as
  
          - segments : dict
              Config of segments which is same as 'segments' in self.__init__
  
      """
      if handler_kwargs is not None:
          self.handler.config(**handler_kwargs)
      if "segments" in kwargs:
          self.segments = deepcopy(kwargs.pop("segments"))
      super().config(**kwargs)
  
imports: from ...utils.serial import Serializable
  from typing import Callable, Union, List, Tuple, Dict, Text, Optional
  from ...utils import init_instance_by_config, np_ffill, time_to_slc_point
  from ...log import get_module_logger
  from .handler import DataHandler, DataHandlerLP
  from copy import copy, deepcopy
  from inspect import getfullargspec
  import pandas
  import numpy
  import bisect
  from ...utils import lazy_sort_index
  from .utils import get_level_index
label_desc: Use image node_id 2 for calling the DatasetH obj's underlying member method code with example usage: obj.config(handler_kwargs) without return types