code: def check_options_languages(
      options: Namespace, ocr_engine_languages: list[str]
  ) -> None:
      if not options.languages:
          options.languages = [DEFAULT_LANGUAGE]
          system_lang = locale.getlocale()[0]
          if system_lang and not system_lang.startswith("en"):
              log.debug(
                  "No language specified; assuming --language %s",
                  DEFAULT_LANGUAGE,
              )
      if not ocr_engine_languages:
          return
      missing_languages = set(options.languages) - set(
          ocr_engine_languages
      )
      if missing_languages:
          lang_text = "\n".join(lang for lang in missing_languages)
          msg = (
              "OCR engine does not have language data for the following "
              "requested languages: \n"
              f"{lang_text}\n"
              "Please install the appropriate language data for your OCR engine.\n"
              "\n"
              "See the online documentation for instructions:\n"
              "    https://ocrmypdf.readthedocs.io/en/latest/languages.html\n"
              "\n"
              "Note: most languages are identified by a 3-letter ISO 639-2 Code.\n"
              "For example, English is 'eng', German is 'deu', and Spanish is 'spa'.\n"
              "Simplified Chinese is 'chi_sim' and Traditional Chinese is 'chi_tra'."
              "\n"
          )
          raise MissingDependencyError(msg)
  
imports: from __future__ import annotations
  import locale
  import logging
  import os
  import sys
  import unicodedata
  from argparse import Namespace
  from collections.abc import Sequence
  from pathlib import Path
  from shutil import copyfileobj
  import pikepdf
  import PIL
  from pluggy import PluginManager
  from ocrmypdf._exec import unpaper
  from ocrmypdf.exceptions import BadArgsError, InputFileError, MissingDependencyError, OutputFileAccessError
  from ocrmypdf.helpers import is_file_writable, monotonic, safe_symlink
  from ocrmypdf.subprocess import check_external_program
label_desc: Use image node_id 2 for calling a global function with example usage: check_options_languages(options, ocr_engine_languages) without return types