class_docstr: Loader that extracts text from images
code: def __init__(
      self,
      path_images: Union[str, List[str]] = None,
      model_type="google/pix2struct-textcaps-base",
      max_new_tokens=50,
  ):
      super().__init__(path_images)
      self._pix2struct_model = None
      self._model_type = model_type
      self._max_new_tokens = max_new_tokens
  
file_path: h2ogpt/src/image_pix2struct.py
imports: from typing import List, Union, Any, Tuple
  from langchain.docstore.document import Document
  from langchain.document_loaders import ImageCaptionLoader
  from utils import get_device, clear_torch_cache
  from PIL import Image
label_desc: Use image node_id 1 to create a new H2OPix2StructLoader object from inherited base classes: ImageCaptionLoader with example: obj = H2OPix2StructLoader(path_images, model_type, max_new_tokens)