code: def test_language_warning(caplog):
      opts = make_opts(language=None)
      _plugin_manager = get_plugin_manager(opts.plugins)
      caplog.set_level(logging.DEBUG)
      with patch(
          "ocrmypdf._validation.locale.getlocale",
          return_value=("en_US", "UTF-8"),
      ) as mock:
          vd.check_options_languages(opts, ["eng"])
          assert opts.languages == ["eng"]
          assert "" in caplog.text
          mock.assert_called_once()
  
      opts = make_opts(language=None)
      with patch(
          "ocrmypdf._validation.locale.getlocale",
          return_value=("fr_FR", "UTF-8"),
      ) as mock:
          vd.check_options_languages(opts, ["eng"])
          assert opts.languages == ["eng"]
          assert "assuming --language" in caplog.text
          mock.assert_called_once()
  
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 13 for calling a global function with example usage: test_language_warning(caplog) without return types