code: def test_unpaper_image_too_big(resources, outdir, caplog):
      with patch(
          "ocrmypdf._exec.unpaper.UNPAPER_IMAGE_PIXEL_LIMIT", 42
      ):
          infile = resources / "crom.png"
          unpaper.clean(infile, outdir / "out.png", dpi=300) == infile
  
          assert any(
              "too large for cleaning" in rec.message
              for rec in caplog.get_records("call")
              if rec.levelno == logging.WARNING
          )
  
file_path: OCRmyPDF/tests/test_unpaper.py
imports: from __future__ import annotations
  import logging
  from os import fspath
  from unittest.mock import patch
  import pytest
  from packaging.version import Version
  from ocrmypdf._exec import unpaper
  from ocrmypdf._plugin_manager import get_parser_options_plugins
  from ocrmypdf._validation import check_options
  from ocrmypdf.exceptions import BadArgsError, ExitCode, MissingDependencyError
  from .conftest import check_ocrmypdf, have_unpaper, run_ocrmypdf_api
label_desc: Use image node_id 7 for calling a global function with example usage: test_unpaper_image_too_big(resources, outdir, caplog) without return types