code: def test_wrong_input_on_filter(self):
      # Typed list type should raises an
      # error if the argument given to filter
      # isn't of the same type as the one
      # specified on creation
  
      # list of matrices
      myType = TypedListType(
          TensorType(pytensor.config.floatX, shape=(None, None))
      )
  
      with pytest.raises(TypeError):
          myType.filter([4])
  
imports: import numpy
  import pytest
  import pytensor
  from pytensor.tensor.type import TensorType
  from pytensor.typed_list.basic import TypedListVariable
  from pytensor.typed_list.type import TypedListType
  from tests.tensor.utils import random_ranged
label_desc: Use image node_id 2 for calling the TestTypedListType obj's underlying member method code with example usage: obj.test_wrong_input_on_filter() without return types