code: def test_image_to_pdf(resources, outpdf):
      check_ocrmypdf(
          resources / "crom.png",
          outpdf,
          "--image-dpi",
          "200",
          "--plugin",
          "tests/plugins/tesseract_noop.py",
      )
  
file_path: OCRmyPDF/tests/test_image_input.py
imports: from __future__ import annotations
  from unittest.mock import patch
  import img2pdf
  import pikepdf
  import pytest
  from PIL import Image
  import ocrmypdf
  from .conftest import check_ocrmypdf, run_ocrmypdf_api
label_desc: Use image node_id 2 for calling a global function with example usage: test_image_to_pdf(resources, outpdf) without return types