code: def test_valid(self) -> None:
      prop = bcpp.Complex()
  
      assert prop.is_valid(0)
      assert prop.is_valid(1)
      assert prop.is_valid(0.0)
      assert prop.is_valid(1.0)
      assert prop.is_valid(1.0 + 1.0j)
  
      assert prop.is_valid(np.int8(0))
      assert prop.is_valid(np.int8(1))
      assert prop.is_valid(np.int16(0))
      assert prop.is_valid(np.int16(1))
      assert prop.is_valid(np.int32(0))
      assert prop.is_valid(np.int32(1))
      assert prop.is_valid(np.int64(0))
      assert prop.is_valid(np.int64(1))
      assert prop.is_valid(np.uint8(0))
      assert prop.is_valid(np.uint8(1))
      assert prop.is_valid(np.uint16(0))
      assert prop.is_valid(np.uint16(1))
      assert prop.is_valid(np.uint32(0))
      assert prop.is_valid(np.uint32(1))
      assert prop.is_valid(np.uint64(0))
      assert prop.is_valid(np.uint64(1))
      assert prop.is_valid(np.float16(0))
      assert prop.is_valid(np.float16(1))
      assert prop.is_valid(np.float32(0))
      assert prop.is_valid(np.float32(1))
      assert prop.is_valid(np.float64(0))
      assert prop.is_valid(np.float64(1))
      assert prop.is_valid(np.complex64(1.0 + 1.0j))
      assert prop.is_valid(np.complex128(1.0 + 1.0j))
      if hasattr(np, "complex256"):
          assert prop.is_valid(np.complex256(1.0 + 1.0j))
  
      # TODO (bev) should fail
      assert prop.is_valid(False)
      assert prop.is_valid(True)
  
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 1 for calling the Test_Complex obj's underlying member method code with example usage: obj.test_valid() without return types