def METHOD_NAME(self, data_shape, filenames, expected_shape, dtype):
    test_image = np.random.rand(*data_shape).astype(dtype)
    with tempfile.TemporaryDirectory() as tempdir:
        for i, filename in enumerate(filenames):
            filenames[i] = os.path.join(tempdir, filename)
            nrrd.write(filenames[i], test_image.astype(dtype))
        reader = NrrdReader()
        results = reader.read(filenames)
    for result in results:
        self.assertTupleEqual(result.array.shape, expected_shape)
        self.assertTupleEqual(tuple(result.header["sizes"]), expected_shape)
        np.testing.assert_allclose(result.array, test_image)