code: def check_options(options: Namespace) -> None:
      """Called to ask the plugin to check all of the options.
  
      The plugin may check if options that it added are valid.
  
      Warnings or other messages may be passed to the user by creating a logger
      object using ``log = logging.getLogger(__name__)`` and logging to this.
  
      The plugin may also modify the *options*. All objects that are in options
      must be picklable so they can be marshalled to child worker processes.
  
      Raises:
          ocrmypdf.exceptions.ExitCodeException: If options are not acceptable
              and the application should terminate gracefully with an informative
              message and error code.
  
      Note:
          This hook will be called from the main process, and may modify global state
          before child worker processes are forked.
      """
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from argparse import ArgumentParser, Namespace
  from collections.abc import Sequence, Set
  from logging import Handler
  from pathlib import Path
  from typing import TYPE_CHECKING, NamedTuple
  import pluggy
  from ocrmypdf import Executor, PdfContext
  from ocrmypdf._progressbar import ProgressBar
  from ocrmypdf.helpers import Resolution
label_desc: Use image node_id 4 for calling a global function with example usage: check_options(options) without return types