code: def test_l_macro_rounding(convert_mode):
      for mode in ("P", "PA"):
          im = Image.new(mode, (1, 1))
          im.palette.getcolor((0, 1, 2))
  
          converted_im = im.convert(convert_mode)
          px = converted_im.load()
          converted_color = px[0, 0]
          if convert_mode == "LA":
              converted_color = converted_color[0]
          assert converted_color == 1
  
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 15 for calling a global function with example usage: test_l_macro_rounding(convert_mode) without return types