def METHOD_NAME(self):
    # test for the 'depth' optional argument
    myNestedType = TypedListType(
        TensorType(pytensor.config.floatX, shape=(None, None)), 3
    )
    myType = TypedListType(TensorType(pytensor.config.floatX, shape=(None, None)))
    myManualNestedType = TypedListType(TypedListType(TypedListType(myType)))
    assert myNestedType == myManualNestedType