code: def test_pdf_info(tmp_path):
      # make a PDF file
      pdf_filename = helper_save_as_pdf(
          tmp_path,
          "RGB",
          title="title",
          author="author",
          subject="subject",
          keywords="keywords",
          creator="creator",
          producer="producer",
          creationDate=time.strptime("2000", "%Y"),
          modDate=time.strptime("2001", "%Y"),
      )
  
      # open it, check pages and info
      with PdfParser.PdfParser(pdf_filename) as pdf:
          assert len(pdf.info) == 8
          assert pdf.info.Title == "title"
          assert pdf.info.Author == "author"
          assert pdf.info.Subject == "subject"
          assert pdf.info.Keywords == "keywords"
          assert pdf.info.Creator == "creator"
          assert pdf.info.Producer == "producer"
          assert pdf.info.CreationDate == time.strptime("2000", "%Y")
          assert pdf.info.ModDate == time.strptime("2001", "%Y")
          check_pdf_pages_consistency(pdf)
  
imports: import io
  import os
  import os.path
  import tempfile
  import time
  import pytest
  from PIL import Image, PdfParser
  from .helper import hopper, mark_if_feature_version
label_desc: Use image node_id 15 for calling a global function with example usage: test_pdf_info(tmp_path) without return types