def METHOD_NAME(self):
    for i in range(0, 2):
        if self.noise_level[i] < 0 or self.noise_level[i] > 1.0:
            raise ValueError(f"noise_level {self.noise_level}  is not within (0, 1)")
    if self.noise_level[0] > self.noise_level[1]:
        raise ValueError(
            f"minimum noise level {self.noise_level[0]} should be less "
            f"than maximum noise level {self.noise_level[1]}"
        )