code: def test_invalid(self) -> None:
      prop = bcpc.RGB()
      assert not prop.is_valid(None)
      assert not prop.is_valid(False)
      assert not prop.is_valid(True)
      assert not prop.is_valid(0)
      assert not prop.is_valid(1)
      assert not prop.is_valid(0.0)
      assert not prop.is_valid(1.0)
      assert not prop.is_valid(1.0 + 1.0j)
      assert not prop.is_valid("")
      assert not prop.is_valid(())
      assert not prop.is_valid([])
      assert not prop.is_valid({})
      assert not prop.is_valid(_TestHasProps())
      assert not prop.is_valid(_TestModel())
  
      assert not prop.is_valid((0, 127, 255))
      assert not prop.is_valid((0, 127, 255, 1.0))
      assert not prop.is_valid((0, -127, 255))
      assert not prop.is_valid((0, 127))
      assert not prop.is_valid((0, 127, 1.0))
      assert not prop.is_valid((0, 127, 255, 255))
  
      assert not prop.is_valid("#00aaff")
      assert not prop.is_valid("#00AAFF")
      assert not prop.is_valid("#00AaFf")
      assert not prop.is_valid("00aaff")
      assert not prop.is_valid("00AAFF")
      assert not prop.is_valid("00AaFf")
      assert not prop.is_valid("#00AaFg")
      assert not prop.is_valid("#00AaFff")
  
      assert not prop.is_valid("blue")
      assert not prop.is_valid("BLUE")
  
      assert not prop.is_valid("foobar")
  
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 2 for calling the Test_RGB obj's underlying member method code with example usage: obj.test_invalid() without return types