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