code: def test_content_preservation(resources, outpdf):
      infile = resources / "masks.pdf"
  
      check_ocrmypdf(
          infile,
          outpdf,
          "--pdf-renderer",
          "hocr",
          "--tesseract-timeout",
          "0",
      )
  
      info = pdfinfo.PdfInfo(outpdf)
      page = info[0]
      assert len(page.images) > 1, "masks were rasterized"
  
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 2 for calling a global function with example usage: test_content_preservation(resources, outpdf) without return types