def METHOD_NAME(self) -> None:
    if not (isinstance(self.sample_rate, int) and self.sample_rate > 0):
        raise ValueError("Sample rate be must a positive integer.")
    if not isinstance(self.verbose, bool):
        raise ValueError("The argument `verbose` has to be of type bool.")