human
Complete this python program:
def constrains(*args):
assistant
#Here is the Python program you requested.

    """Decorates a constraint checker. Each argument must be a field name
    used in the check::
    @api.one
    @api.constrains(\name\, \description\)
    def _check_description(self):
    if self.name == self.description:
    raise ValidationError("Fields name and description must be different")
    Invoked on the records on which one of the named fields has been modified.
    Should raise :class:`~odoo.exceptions.ValidationError` if the
    validation failed.
    .. warning::
    ``@constrains`` only supports simple field names, dotted names
    (fields of relational fields e.g. ``partner_id.customer``) are not
    supported and will be ignored
    """
    return attrsetter('_constrains', args)