I am looking for an efficient and cleaner way of executing the below simplified code. Currently train_loader or test_loader is copied into enumerator