code: def test_from_rgb(self) -> None:
      c = bcc.RGB(10, 20, 30)
      c2 = bcc.RGB.from_rgb(c)
      assert c2 is not c
      assert c2.a == c.a
      assert c2.r == c.r
      assert c2.g == c.g
      assert c2.b == c.b
  
      c = bcc.RGB(10, 20, 30, 0.1)
      c2 = bcc.RGB.from_rgb(c)
      assert c2 is not c
      assert c2.a == c.a
      assert c2.r == c.r
      assert c2.g == c.g
      assert c2.b == c.b
  
imports: from __future__ import annotations
  import pytest
  import bokeh.colors.color
label_desc: Use image node_id 6 for calling the Test_RGB obj's underlying member method code with example usage: obj.test_from_rgb() without return types