code: def test_to_hsl(self) -> None:
      c = bcc.RGB(255, 100, 0)
      c2 = c.to_hsl()
      assert c2 is not c
      assert c2.a == c.a
      assert c2.h == 24
      assert c2.s == 1.0
      assert c2.l == 0.5
  
      c = bcc.RGB(255, 100, 0, 0.1)
      c2 = c.to_hsl()
      assert c2 is not c
      assert c2.a == c.a
      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 9 for calling the Test_RGB obj's underlying member method code with example usage: obj.test_to_hsl() without return types