code: def validator(self, meth):
          
          if self._validator is None:
              self._validator = meth
          else:
              self._validator = and_(self._validator, meth)
          return meth
docs: Decorator that adds *meth* to the list of validators.
  
          Returns *meth* unchanged.
  
          .. versionadded:: 17.1.0