code: def generate_hocr(input_file, output_hocr, output_text, options):
      with Image.open(input_file) as im, open(
          output_hocr, "w", encoding="utf-8"
      ) as f:
          w, h = im.size
          f.write(HOCR_TEMPLATE.format(str(w), str(h)))
      with open(output_text, "w") as f:
          f.write("")
  
file_path: OCRmyPDF/tests/plugins/tesseract_debug_rotate.py
imports: from __future__ import annotations
  import pikepdf
  from PIL import Image
  from ocrmypdf import OcrEngine, OrientationConfidence, hookimpl
  from ocrmypdf.helpers import page_number
label_desc: Use image node_id 6 for calling the FixedRotateNoopOcrEngine obj's underlying member method code with example usage: obj.generate_hocr(input_file, output_hocr, output_text, options) without return types