code: def test_type_equality(self):
      # Typed list types should only be equal
      # when they contains the same pytensor
      # variables
  
      # list of matrices
      myType1 = TypedListType(
          TensorType(pytensor.config.floatX, shape=(None, None))
      )
      # list of matrices
      myType2 = TypedListType(
          TensorType(pytensor.config.floatX, shape=(None, None))
      )
      # list of scalars
      myType3 = TypedListType(
          TensorType(pytensor.config.floatX, shape=())
      )
  
      assert myType2 == myType1
      assert myType3 != myType1
  
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 4 for calling the TestTypedListType obj's underlying member method code with example usage: obj.test_type_equality() without return types