def METHOD_NAME(self, ipn: str, part):
    """Validate part IPN
    These examples are silly, but serve to demonstrate how the feature could be used
    """
    if self.get_setting('IPN_MUST_CONTAIN_Q') and 'Q' not in ipn:
        raise ValidationError("IPN must contain 'Q'")