def METHOD_NAME(self, attribute, value):
    """Check that provided end date is valid."""
    if value < self.start_date or self.entry_date < self.end_date:
        raise ValueError(f"Invalid end date: {value}.")