code: def generate_pdf(input_file, output_pdf, output_text, options):
      with patch_tesseract_run():
          TesseractOcrEngine.generate_pdf(
              input_file, output_pdf, output_text, options
          )
  
file_path: OCRmyPDF/tests/plugins/tesseract_big_image_error.py
imports: from __future__ import annotations
  from contextlib import contextmanager
  from subprocess import CalledProcessError
  from unittest.mock import patch
  from ocrmypdf import hookimpl
  from ocrmypdf.builtin_plugins.tesseract_ocr import TesseractOcrEngine
label_desc: Use image node_id 3 for calling the BigImageErrorOcrEngine obj's underlying member method code with example usage: obj.generate_pdf(input_file, output_pdf, output_text, options) without return types