code: def test_invalid(self) -> None:
      prop = bcpn.Nullable(List(Int))
  
      assert not prop.is_valid(-100)
      assert not prop.is_valid("yyy")
      assert not prop.is_valid([1, 2, ""])
  
      assert not prop.is_valid(())
      assert not prop.is_valid({})
      assert not prop.is_valid(_TestHasProps())
      assert not prop.is_valid(_TestModel())
  
imports: from __future__ import annotations
  import pytest
  import warnings
  from typing import TYPE_CHECKING, Union
  from bokeh.core.properties import Dict, Instance, Int, List, String
  from bokeh.core.property.wrappers import PropertyValueDict, PropertyValueList
  from bokeh.util.warnings import BokehDeprecationWarning
  from tests.support.util.api import verify_all
  from _util_property import _TestHasProps, _TestModel
  import bokeh.core.property.nullable
label_desc: Use image node_id 5 for calling the Test_Nullable obj's underlying member method code with example usage: obj.test_invalid() without return types