code: def should_linearize(working_file: Path, context: PdfContext) -> bool:
      """Determine whether the PDF should be linearized.
  
      For smaller files, linearization is not worth the effort.
      """
      filesize = os.stat(working_file).st_size
      if filesize > (context.options.fast_web_view * 1_000_000):
          return True
      return False
  
imports: from __future__ import annotations
  import logging
  import os
  from datetime import datetime, timezone
  from pathlib import Path
  from typing import Any
  from pikepdf import Dictionary, Name, Pdf
  from pikepdf import __version__
  from pikepdf.models.metadata import PdfMetadata, encode_pdf_date
  from ocrmypdf._jobcontext import PdfContext
  from ocrmypdf._version import PROGRAM_NAME
  from ocrmypdf._version import __version__
  from ocrmypdf.languages import iso_639_2_from_3
label_desc: Use image node_id 4 for calling a global function with example usage: should_linearize(working_file, context) and returns: False, True