code: def test_exotic_image(pdf, renderer, output_type, resources, outdir):
      outfile = outdir / f"test_{pdf}_{renderer}.pdf"
      check_ocrmypdf(
          resources / pdf,
          outfile,
          "-dc" if have_unpaper() else "-d",
          "-v",
          "1",
          "--output-type",
          output_type,
          "--sidecar",
          "--skip-text",
          "--pdf-renderer",
          renderer,
          "--plugin",
          "tests/plugins/tesseract_cache.py",
      )
  
      assert outfile.with_suffix(".pdf.txt").exists()
  
file_path: OCRmyPDF/tests/test_preprocessing.py
imports: from __future__ import annotations
  from math import isclose
  import pytest
  from PIL import Image
  from ocrmypdf._exec import ghostscript, tesseract
  from ocrmypdf.helpers import Resolution
  from ocrmypdf.pdfinfo import PdfInfo
  from .conftest import check_ocrmypdf, have_unpaper
label_desc: Use image node_id 4 for calling a global function with example usage: test_exotic_image(pdf, renderer, output_type, resources, outdir) without return types