def METHOD_NAME(self):
    # Test compatibility when wrapping in a Sequential
    # https://github.com/keras-team/keras-core/issues/347
    layer = layers.Resizing(8, 9)
    input_data = np.random.random((2, 10, 12, 3))
    ds = (
        tf_data.Dataset.from_tensor_slices(input_data)
        .batch(2)
        .map(Sequential([layer]))
    )
    for output in ds.take(1):
        output = output.numpy()
    self.assertEqual(list(output.shape), [2, 8, 9, 3])