code: def test_timeout(caplog):
      tesseract.page_timedout(5)
      assert "took too long" in caplog.text
  
file_path: OCRmyPDF/tests/test_tesseract.py
imports: from __future__ import annotations
  import logging
  import os
  import subprocess
  from os import fspath
  from pathlib import Path
  import pytest
  from ocrmypdf import pdfinfo
  from ocrmypdf._exec import tesseract
  from ocrmypdf.exceptions import MissingDependencyError
  from .conftest import check_ocrmypdf
label_desc: Use image node_id 6 for calling a global function with example usage: test_timeout(caplog) without return types