@parameterized.expand([TEST_CASE_0, TEST_CASE_1, TEST_CASE_2, TEST_CASE_3])
@skipUnless(has_cim, 'Requires CuCIM')
def test_read_patches_cucim(self, input_parameters, expected):
    dataset = PatchWSIDataset(**input_parameters)
    samples = dataset[0]
    for i in range(len(samples)):
        self.assertTupleEqual(samples[i]['label'].shape, expected[i]['label'].shape)
        self.assertTupleEqual(samples[i]['image'].shape, expected[i]['image'].shape)
        self.assertIsNone(assert_array_equal(samples[i]['label'], expected[i]['label']))
        self.assertIsNone(assert_array_equal(samples[i]['image'], expected[i]['image']))
@parameterized.expand([TEST_CASE_0, TEST_CASE_1, TEST_CASE_2, TEST_CASE_3])
@skipUnless(has_cim, 'Requires CuCIM')
def test_read_patches_cucim(self, input_parameters, expected):
    dataset = PatchWSIDataset(**input_parameters)
    samples = dataset[0]
    for i in range(len(samples)):
        self.assertTupleEqual(samples[i]['label'].shape, expected[i]['label'].shape)
        self.assertTupleEqual(samples[i]['image'].shape, expected[i]['image'].shape)
        self.assertIsNone(assert_array_equal(samples[i]['label'], expected[i]['label']))
        self.assertIsNone(assert_array_equal(samples[i]['image'], expected[i]['image']))