code: def test_rgba_p():
      im = hopper("RGBA")
      im.putalpha(hopper("L"))
  
      converted = im.convert("P")
      comparable = converted.convert("RGBA")
  
      assert_image_similar(im, comparable, 20)
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image
  from .helper import assert_image, assert_image_equal, assert_image_similar, hopper
label_desc: Use image node_id 9 for calling a global function with example usage: test_rgba_p() without return types