code: def test_save(tmpdir):
      # pixmaps from file then save to image
      # make pixmap from this and confirm equality
      pix1 = fitz.Pixmap(imgfile)
      outfile = os.path.join(tmpdir, "foo.png")
      pix1.save(outfile, output="png")
      # read it back
      pix2 = fitz.Pixmap(outfile)
      assert repr(pix1) == repr(pix2)
  
file_path: pymudf/tests/test_pixmap.py
imports: import fitz
  import os
  import platform
  import sys
  import tempfile
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_save(tmpdir) without return types