code: def test_from_rgb(self) -> None:
      c = bcc.RGB(255, 100, 0)
      c2 = bcc.HSL.from_rgb(c)
      assert c2 is not c
      assert c2.a == 1
      assert c2.h == 24
      assert c2.s == 1.0
      assert c2.l == 0.5
  
      c = bcc.RGB(255, 100, 0, 0.1)
      c2 = bcc.HSL.from_rgb(c)
      assert c2 is not c
      assert c2.a == 0.1
      assert c2.h == 24
      assert c2.s == 1.0
      assert c2.l == 0.5
  
imports: from __future__ import annotations
  import pytest
  import bokeh.colors.color
label_desc: Use image node_id 5 for calling the Test_HSL obj's underlying member method code with example usage: obj.test_from_rgb() without return types