code: def test_rotate_deskew_ocr_timeout(resources, outdir):
      check_ocrmypdf(
          resources / "rotated_skew.pdf",
          outdir / "deskewed.pdf",
          "--rotate-pages",
          "--rotate-pages-threshold",
          "0",
          "--deskew",
          "--tesseract-timeout",
          "0",
          "--pdf-renderer",
          "hocr",
      )
  
      cmp = compare_images_monochrome(
          outdir,
          reference_pdf=resources / "ccitt.pdf",
          reference_pageno=1,
          test_pdf=outdir / "deskewed.pdf",
          test_pageno=1,
      )
  
      # Confirm that the page still got deskewed
      assert cmp > 0.95
  
imports: from __future__ import annotations
  import operator
  import warnings
  from io import BytesIO
  from math import cos, pi, sin
  from os import fspath
  import img2pdf
  import pikepdf
  import pytest
  from PIL import Image, ImageChops
  from reportlab.pdfgen.canvas import Canvas
  from ocrmypdf._exec import ghostscript
  from ocrmypdf._plugin_manager import get_plugin_manager
  from ocrmypdf.helpers import IMG2PDF_KWARGS, Resolution
  from ocrmypdf.pdfinfo import PdfInfo
  from .conftest import check_ocrmypdf, run_ocrmypdf_api
label_desc: Use image node_id 6 for calling a global function with example usage: test_rotate_deskew_ocr_timeout(resources, outdir) without return types