code: def test_non_square_resolution(renderer, resources, outpdf):
      # Confirm input image is non-square resolution
      in_pageinfo = PdfInfo(resources / "aspect.pdf")
      assert in_pageinfo[0].dpi.x != in_pageinfo[0].dpi.y
  
      check_ocrmypdf(
          resources / "aspect.pdf",
          outpdf,
          "--pdf-renderer",
          renderer,
          "--plugin",
          "tests/plugins/tesseract_cache.py",
      )
  
      out_pageinfo = PdfInfo(outpdf)
  
      # Confirm resolution was kept the same
      assert in_pageinfo[0].dpi == out_pageinfo[0].dpi
  
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 5 for calling a global function with example usage: test_non_square_resolution(renderer, resources, outpdf) without return types