code: def test_valid(self) -> None:
      prop = bcpc.Color()
  
      assert prop.is_valid((0, 127, 255))
      assert prop.is_valid((0, 127, 255, 1.0))
  
      assert prop.is_valid("#00aaff")
      assert prop.is_valid("#00AAFF")
      assert prop.is_valid("#00AaFf")
  
      assert prop.is_valid("blue")
      assert prop.is_valid("BLUE")
  
      assert prop.is_valid("rgb(10, 20, 30)")
      assert prop.is_valid("rgba(10, 20, 30, 1)")
      assert prop.is_valid("rgba(10, 20, 30, 0.5)")
  
      assert prop.is_valid(RGB(10, 20, 30))
  
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 1 for calling the Test_Color obj's underlying member method code with example usage: obj.test_valid() without return types