code: def _error_trailer(
      program: str, package: str | Mapping[str, str], **kwargs
  ) -> None:
      del kwargs
      if isinstance(package, Mapping):
          package = package.get(_get_platform(), program)
  
      if _get_platform() == "darwin":
          log.info(OSX_INSTALL_ADVICE.format(**locals()))
      elif _get_platform() == "linux":
          log.info(LINUX_INSTALL_ADVICE.format(**locals()))
      elif _get_platform() == "windows":
          log.info(WINDOWS_INSTALL_ADVICE.format(**locals()))
  
imports: from __future__ import annotations
  import logging
  import os
  import re
  import sys
  from collections.abc import Mapping, Sequence
  from contextlib import suppress
  from pathlib import Path
  from subprocess import PIPE, STDOUT, CalledProcessError, CompletedProcess, Popen
  from subprocess import run
  from typing import Callable, Union
  from packaging.version import Version
  from ocrmypdf.exceptions import MissingDependencyError
label_desc: Use image node_id 6 for calling a global function with example usage: _error_trailer(program, package) without return types