code: def test_optimizing(caplog):
      vd.check_options(
          *make_opts_pm(
              optimize=0,
              jbig2_lossy=True,
              png_quality=18,
              jpeg_quality=10,
          )
      )
      assert "will be ignored because" in caplog.text
  
imports: from __future__ import annotations
  import logging
  import os
  from unittest.mock import patch
  import pikepdf
  import pytest
  from ocrmypdf import _validation
  from ocrmypdf._concurrent import NullProgressBar, SerialExecutor
  from ocrmypdf._exec.tesseract import TesseractVersion
  from ocrmypdf._plugin_manager import get_plugin_manager
  from ocrmypdf.api import create_options
  from ocrmypdf.cli import get_parser
  from ocrmypdf.exceptions import BadArgsError, MissingDependencyError
  from ocrmypdf.pdfinfo import PdfInfo
  from .conftest import run_ocrmypdf_api
label_desc: Use image node_id 7 for calling a global function with example usage: test_optimizing(caplog) without return types