code: def is_optimization_enabled(context: PdfContext) -> bool:
      return context.options.optimize != 0
  
file_path: OCRmyPDF/src/ocrmypdf/builtin_plugins/optimize.py
imports: from __future__ import annotations
  import argparse
  import logging
  from collections.abc import Sequence
  from pathlib import Path
  from ocrmypdf import Executor, PdfContext, hookimpl
  from ocrmypdf._exec import jbig2enc, pngquant
  from ocrmypdf._pipeline import get_pdf_save_settings
  from ocrmypdf.cli import numeric
  from ocrmypdf.optimize import optimize
  from ocrmypdf.subprocess import check_external_program
label_desc: Use image node_id 4 for calling a global function with example usage: is_optimization_enabled(context) and returns: unknown