code: def test_resolve_names():
      """Test PDF name resolution."""
      # guard against wrong PyMuPDF architecture version
      if not hasattr(fitz.Document, "resolve_names"):
          print("PyMuPDF version does not support resolving PDF names")
          return
      pickle_in = open(f"{scriptdir}/resources/cython.pickle", "rb")
      old_names = pickle.load(pickle_in)
      doc = fitz.open(f"{scriptdir}/resources/cython.pdf")
      new_names = doc.resolve_names()
      assert new_names == old_names
  
imports: import io
  import os
  import fitz
  import pickle
label_desc: Use image node_id 42 for calling a global function with example usage: test_resolve_names() without return types