def METHOD_NAME(self):
    transform = tio.RescaleIntensity(
        out_min_max=(0, 1),
        percentiles=(5, 95),
        masking_method='label',
    )
    transformed = transform(self.sample_subject)
    mask = self.sample_subject.label.data > 0
    low_quantile = np.percentile(self.sample_subject.t1.data[mask], 5)
    high_quantile = np.percentile(self.sample_subject.t1.data[mask], 95)
    low_indices = (self.sample_subject.t1.data < low_quantile).nonzero(
        as_tuple=True,
    )
    high_indices = (self.sample_subject.t1.data > high_quantile).nonzero(
        as_tuple=True,
    )
    assert transformed.t1.data.min() == 0
    assert transformed.t1.data.max() == 1
    assert (transformed.t1.data[low_indices] == 0).all()
    assert (transformed.t1.data[high_indices] == 1).all()