code: def test_palette_save_ImagePalette(tmp_path):
      # Pass in a different palette, as an ImagePalette.ImagePalette
      # effectively the same as test_palette_save_P
  
      im = hopper("P")
      palette = ImagePalette.ImagePalette(
          "RGB", list(range(256))[::-1] * 3
      )
  
      out = str(tmp_path / "temp.gif")
      im.save(out, palette=palette)
  
      with Image.open(out) as reloaded:
          im.putpalette(palette)
          assert_image_equal(reloaded.convert("RGB"), im.convert("RGB"))
  
imports: from io import BytesIO
  import pytest
  from PIL import GifImagePlugin, Image, ImageDraw, ImagePalette, features
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar, hopper, is_pypy, netpbm_available
label_desc: Use image node_id 55 for calling a global function with example usage: test_palette_save_ImagePalette(tmp_path) without return types