Using your statement you are still getting the underlying test_data.
Try the following:
print(self.train_dataset[0][0].type())

, without calling .test_data.
PS: I had a small error in my previous post, as you need to index the data of the returned tuple.