code: def test_putpalette_with_alpha_values():
      with Image.open("Tests/images/transparent.gif") as im:
          expected = im.convert("RGBA")
  
          palette = im.getpalette()
          transparency = im.info.pop("transparency")
  
          palette_with_alpha_values = []
          for i in range(256):
              color = palette[i * 3 : i * 3 + 3]
              alpha = 0 if i == transparency else 255
              palette_with_alpha_values += color + [alpha]
          im.putpalette(palette_with_alpha_values, "RGBA")
  
          assert_image_equal(im.convert("RGBA"), expected)
  
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 3 for calling a global function with example usage: test_putpalette_with_alpha_values() without return types