code: def test_trns_RGB(tmp_path):
      im = hopper("RGB")
      im.info["transparency"] = im.getpixel((0, 0))
  
      f = str(tmp_path / "temp.png")
  
      im_l = im.convert("L")
      assert im_l.info["transparency"] == im_l.getpixel(
          (0, 0)
      )  # undone
      im_l.save(f)
  
      im_p = im.convert("P")
      assert "transparency" in im_p.info
      im_p.save(f)
  
      im_rgba = im.convert("RGBA")
      assert "transparency" not in im_rgba.info
      im_rgba.save(f)
  
      im_p = pytest.warns(
          UserWarning, im.convert, "P", palette=Image.Palette.ADAPTIVE
      )
      assert "transparency" not in im_p.info
      im_p.save(f)
  
      im = Image.new("RGB", (1, 1))
      im.info["transparency"] = im.getpixel((0, 0))
      im_p = im.convert("P", palette=Image.Palette.ADAPTIVE)
      assert im_p.info["transparency"] == im_p.getpixel((0, 0))
      im_p.save(f)
  
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 14 for calling a global function with example usage: test_trns_RGB(tmp_path) without return types