class_docstr: Load documents from different files into list of langchain Documents
docstr: Args:
      files: list of files (list[file path, name])
      **kwargs: keyword type arguments, useful for certain document types
docstr_tok: ["Args",":","files",":","list","of","files","(","list","[","file","path",",","name","]",")","*","*","kwargs",":","keyword","type","arguments",",","useful","for","certain","document","types"]
code: def __init__(self, files: List, **kwargs) -> None:
      """
      Args:
          files: list of files (list[file path, name])
          **kwargs: keyword type arguments, useful for certain document types
      """
      self.data = {}
      self.kwargs = kwargs
  
      for item in files:
          path = item[0] if isinstance(item, list) else item
          logger.info(f"Loading data from {path}")
          self.load_data(path)
          logger.info("Data loaded")
  
      self.all_data = []
      for key in self.data:
          if isinstance(self.data[key], list):
              for item in self.data[key]:
                  if isinstance(item, list):
                      self.all_data.extend(item)
                  else:
                      self.all_data.append(item)
  
file_path: colossalai/applications/ColossalQA/colossalqa/data_loader/document_loader.py
imports: import glob
  from typing import List
  from colossalqa.mylogging import get_logger
  from langchain.document_loaders import JSONLoader, PyPDFLoader, TextLoader, UnstructuredHTMLLoader, UnstructuredMarkdownLoader
  from langchain.document_loaders.csv_loader import CSVLoader
label_desc: Use image node_id 1 to create a new DocumentLoader object  with example: obj = DocumentLoader(files)