code: def test_jpeg_in_jpeg_out(resources, outpdf):
      check_ocrmypdf(
          resources / "baiona_color.jpg",
          outpdf,
          "--image-dpi",
          "100",
          "--output-type",
          "pdf",  # specifically check pdf because Ghostscript may convert to JPEG
          "--remove-background",
          "--plugin",
          "tests/plugins/tesseract_noop.py",
      )
      with pikepdf.open(outpdf) as pdf:
          assert (
              next(iter(pdf.pages[0].images.values())).Filter
              == pikepdf.Name.DCTDecode
          )
  
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 7 for calling a global function with example usage: test_jpeg_in_jpeg_out(resources, outpdf) without return types