What do you mean by shape?
If you would like to get the length of the dataset, you could use print(len(test_data)).
However, if you would like to get the shape of a sample, you could use
print(test_data[0][0].shape).
Note that this will only print the shape of the first data sample.
If you don’t resize all images to the same size, each sample could have a different shape.