code: def test_transform(self) -> None:
      prop = bcpc.Color()
      assert prop.transform((0, 127, 255)) == "rgb(0, 127, 255)"
      assert (
          prop.transform((0, 127, 255, 0.1)) == "rgba(0, 127, 255, 0.1)"
      )
  
file_path: bokeh/tests/unit/bokeh/core/property/test_color__property.py
imports: from __future__ import annotations
  import pytest
  from bokeh.colors import RGB
  from tests.support.util.api import verify_all
  from _util_property import _TestHasProps, _TestModel
  import bokeh.core.property.color
label_desc: Use image node_id 3 for calling the Test_Color obj's underlying member method code with example usage: obj.test_transform() without return types