class_docstr: Loader that extracts text from images
code: def unload_model(self):
      if self._ocr_model and hasattr(
          self._ocr_model.det_predictor.model, "cpu"
      ):
          self._ocr_model.det_predictor.model.cpu()
          clear_torch_cache()
      if self._ocr_model and hasattr(
          self._ocr_model.reco_predictor.model, "cpu"
      ):
          self._ocr_model.reco_predictor.model.cpu()
          clear_torch_cache()
      if self._ocr_model and hasattr(self._ocr_model, "cpu"):
          self._ocr_model.cpu()
          clear_torch_cache()
  
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 4 for calling the H2OOCRLoader obj's underlying member method code with example usage: obj.unload_model() without return types