def METHOD_NAME(self) -> None:
    # pylint: disable=R0916
    if not isinstance(self.contrast_factor, (int, float, tuple)) or (
        isinstance(self.contrast_factor, tuple)
        and (
            len(self.contrast_factor) != 2
            or not isinstance(self.contrast_factor[0], (int, float))
            or not isinstance(self.contrast_factor[1], (int, float))
            or self.contrast_factor[0] > self.contrast_factor[1]
        )
    ):
        raise ValueError(
            "The argument `contrast_factor` has to be a float or tuple of two float values as (min, max)."
        )