code: def test_trns_p(tmp_path):
      im = hopper("P")
      im.info["transparency"] = 0
  
      f = str(tmp_path / "temp.png")
  
      im_l = im.convert("L")
      assert im_l.info["transparency"] == 0
      im_l.save(f)
  
      im_rgb = im.convert("RGB")
      assert im_rgb.info["transparency"] == (0, 0, 0)
      im_rgb.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 11 for calling a global function with example usage: test_trns_p(tmp_path) without return types