class_docstr: Loader that extracts text from images
docstr: Load from a list of image files
docstr_tok: ["Load","from","a","list","of","image","files"]
code: def set_image_paths(self, path_images: Union[str, List[str]]):
      """
      Load from a list of image files
      """
      if isinstance(path_images, str):
          self.image_paths = [path_images]
      else:
          self.image_paths = path_images
  
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 5 for calling the H2OPix2StructLoader obj's underlying member method code with example usage: obj.set_image_paths(path_images) without return types