code: def bad_utf8(*args, **kwargs):
      raise CalledProcessError(
          1,
          "tesseract",
          output=b"\x96\xb3\x8c\xf8\x82\xc8UTF-8\x0a",  # "Invalid UTF-8" in Shift JIS
          stderr=b"",
      )
  
file_path: OCRmyPDF/tests/plugins/tesseract_badutf8.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 1 for calling a global function with example usage: bad_utf8() without return types