code: def test_invalid(self) -> None:
      prop = bcpp.Complex()
  
      assert not prop.is_valid(None)
      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.bool_(False))
      assert not prop.is_valid(np.bool_(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 2 for calling the Test_Complex obj's underlying member method code with example usage: obj.test_invalid() without return types