code: def test_imagepalette():
      im = hopper("P")
      im.putpalette(ImagePalette.negative())
      assert_image_equal_tofile(
          im.convert("RGB"), "Tests/images/palette_negative.png"
      )
  
      im.putpalette(ImagePalette.random())
  
      im.putpalette(ImagePalette.sepia())
      assert_image_equal_tofile(
          im.convert("RGB"), "Tests/images/palette_sepia.png"
      )
  
      im.putpalette(ImagePalette.wedge())
      assert_image_equal_tofile(
          im.convert("RGB"), "Tests/images/palette_wedge.png"
      )
  
imports: import pytest
  from PIL import Image, ImagePalette
  from .helper import assert_image_equal, assert_image_equal_tofile, hopper
label_desc: Use image node_id 2 for calling a global function with example usage: test_imagepalette() without return types