code: def min_validator(min_value):
      
      def validator(value):
          if value < min_value:
              raise ValidationError("{} is not >= {}".format(value, min_value))
  
      return validator
docs: Return validator function that ensures lower bound of a number.
  
      Result validation function will validate the internal value of resource
      instance field with the ``value >= min_value`` check
  
      Args:
          min_value: minimal value for new validator