Saving Spliting Dataset

test_to_train, test_to_test = indices_test[split_test:], indices_test[:split_test]
test_to_train = SubsetRandomSampler(test_to_train)
test_to_test = SubsetRandomSampler(test_to_test)

How to save these two split Datasets and is it possible to save the split datasets to load them later?