code: def test_invalid(self) -> None:
      prop = bcpi.Instance(_TestModel)
      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(_TestModel2())
      assert not prop.is_valid(_TestHasProps())
      assert not prop.is_valid(object())
  
imports: from __future__ import annotations
  import pytest
  from pandas import DataFrame, Series
  from pandas.core.groupby import GroupBy
  from bokeh.core.has_props import HasProps
  from tests.support.util.api import verify_all
  from _util_property import _TestHasProps, _TestModel, _TestModel2
  import bokeh.core.property.instance
label_desc: Use image node_id 5 for calling the Test_Instance obj's underlying member method code with example usage: obj.test_invalid() without return types