code: def validate_range_values(request, label, kwargs):
      
      value = kwargs.get(label, request.query.get(label))
      if value:
          kwargs[label] = int(value)
          if kwargs[label] < 0 or kwargs[label] > MAX_PAGE_SIZE:
              raise ValueError
docs: Ensure value contained in label is a positive integer.