def METHOD_NAME(
     self, sample_dataset, subset, raises, expected):
    if raises:
        with pytest.raises(expected):
            NCFile._validate_ds_subset(sample_dataset, subset)
    else:
        assert NCFile._validate_ds_subset(
            sample_dataset, subset) == expected