class_docstr: Loader that extracts text from images
code: def load_model(self):
      try:
          from weasyprint import HTML  # to avoid warning
          from doctr.models.zoo import ocr_predictor
      except ImportError:
          raise ValueError(
              "`doctr` package not found, please install with "
              "`pip install git+https://github.com/h2oai/doctr.git`."
          )
      if self._ocr_model:
          self._ocr_model = self._ocr_model.to(self.device)
          return self
      self.set_context()
      self._ocr_model = ocr_predictor(
          det_arch="db_resnet50",
          reco_arch="crnn_efficientnetv2_mV2",
          pretrained=True,
      ).to(self.device)
      return self
  
imports: from typing import List, Union, Any, Tuple, Optional
  import requests
  import torch
  from langchain.docstore.document import Document
  from langchain.document_loaders import ImageCaptionLoader
  import numpy
  from utils import get_device, clear_torch_cache, NullContext
  from doctr.utils.common_types import AbstractFile
label_desc: Use image node_id 3 for calling the H2OOCRLoader obj's underlying member method code with example usage: obj.load_model() and returns: self, self