code: def test_invalid(self) -> None:
      prop0 = bcpi.Object(Series)
      assert not prop0.is_valid(DataFrame())
      assert not prop0.is_valid(GroupBy(DataFrame()))
      assert not prop0.is_valid({})
      assert not prop0.is_valid(object())
      assert not prop0.is_valid(_TestModel())
      prop1 = bcpi.Object("pandas.Series")
      assert not prop1.is_valid(DataFrame())
      assert not prop1.is_valid(GroupBy(DataFrame()))
      assert not prop1.is_valid({})
      assert not prop1.is_valid(object())
      assert not prop1.is_valid(_TestModel())
  
      prop2 = bcpi.Object(DataFrame)
      assert not prop2.is_valid(Series([1, 2, 3]))
      assert not prop2.is_valid(GroupBy(DataFrame()))
      assert not prop2.is_valid({})
      assert not prop2.is_valid(object())
      assert not prop2.is_valid(_TestModel())
      prop3 = bcpi.Object("pandas.DataFrame")
      assert not prop3.is_valid(Series([1, 2, 3]))
      assert not prop3.is_valid(GroupBy(DataFrame()))
      assert not prop3.is_valid({})
      assert not prop3.is_valid(object())
      assert not prop3.is_valid(_TestModel())
  
      prop4 = bcpi.Object(GroupBy)
      assert not prop4.is_valid(Series([1, 2, 3]))
      assert not prop4.is_valid(DataFrame())
      assert not prop4.is_valid({})
      assert not prop4.is_valid(object())
      assert not prop4.is_valid(_TestModel())
      prop5 = bcpi.Object("pandas.core.groupby.GroupBy")
      assert not prop5.is_valid(Series([1, 2, 3]))
      assert not prop5.is_valid(DataFrame())
      assert not prop5.is_valid({})
      assert not prop5.is_valid(object())
      assert not prop5.is_valid(_TestModel())
  
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 2 for calling the Test_Object obj's underlying member method code with example usage: obj.test_invalid() without return types