code: def _make_postscript(
      icc_name: str, icc_data: bytes, colors: int
  ) -> Iterator[str]:
      yield "%!"
      yield from _postscript_objdef(
          "{icc_PDFA}",  # Not an f-string
          {"/N": str(colors)},
          stream_name="/ICCProfile",
          stream_data=icc_data,
      )
      yield ""
      yield from _postscript_objdef(
          "{OutputIntent_PDFA}",
          {
              "/Type": "/OutputIntent",
              "/S": "/GTS_PDFA1",
              "/DestOutputProfile": "{icc_PDFA}",
              "/OutputConditionIdentifier": f"({icc_name})",  # Only f-string
          },
      )
      yield ""
      yield from _postscript_objdef(
          "{Catalog}", {"/OutputIntents": "[ {OutputIntent_PDFA} ]"}
      )
  
file_path: OCRmyPDF/src/ocrmypdf/pdfa.py
imports: from __future__ import annotations
  import base64
  from collections.abc import Iterator
  from importlib.resources import files
  from pathlib import Path
  import pikepdf
label_desc: Use image node_id 2 for calling a global function with example usage: _make_postscript(icc_name, icc_data, colors) without return types