code: def check_options(options):
      if options.use_threads:
          raise ValueError("I'm not compatible with use_threads")
  
file_path: OCRmyPDF/tests/plugins/tesseract_simulate_oom_killer.py
imports: from __future__ import annotations
  import os
  import signal
  from pathlib import Path
  from ocrmypdf import hookimpl
label_desc: Use image node_id 1 for calling a global function with example usage: check_options(options) without return types