class_docstr: Same as QlibDataLoader. The fields can be define by config
class_docstr_tok: ["Same","as","QlibDataLoader",".","The","fields","can","be","define","by","config"]
docstr: Parameters
  ----------
  config : Tuple[list, tuple, dict]
      Please refer to the doc of DLWParser
  filter_pipe :
      Filter pipe for the instruments
  swap_level :
      Whether to swap level of MultiIndex
  freq:  dict or str
      If type(config) == dict and type(freq) == str, load config data using freq.
      If type(config) == dict and type(freq) == dict, load config[<group_name>] data using freq[<group_name>]
  inst_processors: dict | list
      If inst_processors is not None and type(config) == dict; load config[<group_name>] data using inst_processors[<group_name>]
      If inst_processors is a list, then it will be applied to all groups.
docstr_tok: ["Parameters","--","--","--","--","--","config",":","Tuple","[","list",",","tuple",",","dict","]","Please","refer","to","the","doc","of","DLWParser","filter_pipe",":","Filter","pipe","for","the","instruments","swap_level",":","Whether","to","swap","level","of","MultiIndex","freq",":","dict","or","str","If","type","(","config",")","==","dict","and","type","(","freq",")","==","str",",","load","config","data","using","freq",".","If","type","(","config",")","==","dict","and","type","(","freq",")","==","dict",",","load","config","[","<","group_name",">","]","data","using","freq","[","<","group_name",">","]","inst_processors",":","dict","|","list","If","inst_processors","is","not","None","and","type","(","config",")","==","dict",";","load","config","[","<","group_name",">","]","data","using","inst_processors","[","<","group_name",">","]","If","inst_processors","is","a","list",",","then","it","will","be","applied","to","all","groups","."]
code: def __init__(
      self,
      config: Tuple[list, tuple, dict],
      filter_pipe: List = None,
      swap_level: bool = True,
      freq: Union[str, dict] = "day",
      inst_processors: Union[dict, list] = None,
  ):
      """
      Parameters
      ----------
      config : Tuple[list, tuple, dict]
          Please refer to the doc of DLWParser
      filter_pipe :
          Filter pipe for the instruments
      swap_level :
          Whether to swap level of MultiIndex
      freq:  dict or str
          If type(config) == dict and type(freq) == str, load config data using freq.
          If type(config) == dict and type(freq) == dict, load config[<group_name>] data using freq[<group_name>]
      inst_processors: dict | list
          If inst_processors is not None and type(config) == dict; load config[<group_name>] data using inst_processors[<group_name>]
          If inst_processors is a list, then it will be applied to all groups.
      """
      self.filter_pipe = filter_pipe
      self.swap_level = swap_level
      self.freq = freq
  
      # sample
      self.inst_processors = (
          inst_processors if inst_processors is not None else {}
      )
      assert isinstance(
          self.inst_processors, (dict, list)
      ), f"inst_processors(={self.inst_processors}) must be dict or list"
  
      super().__init__(config)
  
      if self.is_group:
          # check sample config
          if isinstance(freq, dict):
              for _gp in config.keys():
                  if _gp not in freq:
                      raise ValueError(
                          f"freq(={freq}) missing group(={_gp})"
                      )
              assert (
                  self.inst_processors
              ), f"freq(={self.freq}), inst_processors(={self.inst_processors}) cannot be None/empty"
  
imports: import abc
  import pickle
  from pathlib import Path
  import warnings
  import pandas
  from typing import Tuple, Union, List
  from qlib.data import D
  from qlib.utils import load_dataset, init_instance_by_config, time_to_slc_point
  from qlib.log import get_module_logger
  from qlib.utils.serial import Serializable
label_desc: Use image node_id 1 to create a new QlibDataLoader object from inherited base classes: DLWParser with example: obj = QlibDataLoader(config, filter_pipe, swap_level, freq, inst_processors)