def METHOD_NAME(self):
    dataset = [1, 2, 3]
    with set_default_dataset_from_list_serialize_method(torch.tensor):
        dataset_1 = DatasetFromList(dataset, serialize=True)
        self.assertEqual(dataset_1[2], torch.tensor(3))
    dataset_2 = DatasetFromList(dataset, serialize=True)
    self.assertEqual(dataset_2[2], 3)