code: def test_skip_pages_does_not_replicate(resources, basename, outdir):
      infile = resources / basename
      outpdf = outdir / basename
  
      check_ocrmypdf(
          infile,
          outpdf,
          "--pdf-renderer",
          "sandwich",
          "--force-ocr",
          "--tesseract-timeout",
          "0",
      )
  
      info_in = pdfinfo.PdfInfo(infile)
  
      info = pdfinfo.PdfInfo(outpdf)
      for page in info:
          assert len(page.images) == 1, "skipped page was replicated"
  
      for n, info_out_n in enumerate(info):
          assert (
              info_out_n.width_inches == info_in[n].width_inches
          ), "output resized"
          assert (
              info_out_n.height_inches == info_in[n].height_inches
          ), "output resized"
  
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 1 for calling a global function with example usage: test_skip_pages_does_not_replicate(resources, basename, outdir) without return types