def METHOD_NAME(self, moment: 'cirq.Moment') -> None:
    """Raises an exception if a moment is not valid.
    Args:
        moment: The moment to validate.
    Raises:
        ValueError: The moment isn't valid for this device.
    """
    for operation in moment.operations:
        self.validate_operation(operation)