def METHOD_NAME(self):
    ct_max = 1500
    ct_min = -2000
    ct_range = ct_max - ct_min
    tensor = torch.rand(1, 30, 30, 30) * ct_range + ct_min
    ct = tio.ScalarImage(tensor=tensor)
    ct_air = -1000
    ct_bone = 1000
    rescale = tio.RescaleIntensity(
        out_min_max=(-1, 1),
        in_min_max=(ct_air, ct_bone),
    )
    rescaled = rescale(ct)
    assert rescaled.data.min() < -1
    assert rescaled.data.max() > 1