code: def test_invalid(self) -> None:
      prop = bcpp.Bool()
  
      assert not prop.is_valid(None)
      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(np.int8(0))
      assert not prop.is_valid(np.int8(1))
      assert not prop.is_valid(np.int16(0))
      assert not prop.is_valid(np.int16(1))
      assert not prop.is_valid(np.int32(0))
      assert not prop.is_valid(np.int32(1))
      assert not prop.is_valid(np.int64(0))
      assert not prop.is_valid(np.int64(1))
      assert not prop.is_valid(np.uint8(0))
      assert not prop.is_valid(np.uint8(1))
      assert not prop.is_valid(np.uint16(0))
      assert not prop.is_valid(np.uint16(1))
      assert not prop.is_valid(np.uint32(0))
      assert not prop.is_valid(np.uint32(1))
      assert not prop.is_valid(np.uint64(0))
      assert not prop.is_valid(np.uint64(1))
      assert not prop.is_valid(np.float16(0))
      assert not prop.is_valid(np.float16(1))
      assert not prop.is_valid(np.float32(0))
      assert not prop.is_valid(np.float32(1))
      assert not prop.is_valid(np.float64(0))
      assert not prop.is_valid(np.float64(1))
      assert not prop.is_valid(np.complex64(1.0 + 1.0j))
      assert not prop.is_valid(np.complex128(1.0 + 1.0j))
      if hasattr(np, "complex256"):
          assert not prop.is_valid(np.complex256(1.0 + 1.0j))
  
imports: from __future__ import annotations
  import pytest
  from typing import TYPE_CHECKING
  import numpy
  from tests.support.util.api import verify_all
  from _util_property import _TestHasProps, _TestModel
  import bokeh.core.property.primitive
label_desc: Use image node_id 2 for calling the Test_Bool obj's underlying member method code with example usage: obj.test_invalid() without return types