code: def report_on_metadata(options, missing):
      if not missing:
          return
      if options.output_type.startswith("pdfa"):
          log.warning(
              "Some input metadata could not be copied because it is not "
              "permitted in PDF/A. You may wish to examine the output "
              "PDF's XMP metadata."
          )
          log.debug(
              "The following metadata fields were not copied: %r",
              missing,
          )
      else:
          log.error(
              "Some input metadata could not be copied."
              "You may wish to examine the output PDF's XMP metadata."
          )
          log.info(
              "The following metadata fields were not copied: %r",
              missing,
          )
  
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 2 for calling a global function with example usage: report_on_metadata(options, missing) without return types