def METHOD_NAME(self):
    low_quantile = np.percentile(self.sample_subject.t1.data, 5)
    high_quantile = np.percentile(self.sample_subject.t1.data, 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,
    )
    rescale = tio.RescaleIntensity(out_min_max=(0, 1), percentiles=(5, 95))
    transformed = rescale(self.sample_subject)
    assert (transformed.t1.data[low_indices] == 0).all()
    assert (transformed.t1.data[high_indices] == 1).all()