code: def test_tesseract_log_output_raises(caplog):
      with pytest.raises(tesseract.TesseractConfigError):
          tesseract.tesseract_log_output(b"parameter not found: moo")
      assert "not found" 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 8 for calling a global function with example usage: test_tesseract_log_output_raises(caplog) without return types