code: def use_model_attr(attr):
      
  
      def use_model_validator(instance, attribute, value):
          getattr(instance, attr)(instance, attribute, value)
      return use_model_validator
docs: Use the validator set on a separate attribute on the class.