code: def _value_validate(self, value, rnge, identifier="Given"):
          
          if value is not None and (value < rnge[0] or value > rnge[1]):
              raise ValueError('%s value must be between %d and %d.'
                               % (identifier, rnge[0], rnge[1]))
docs: Make sure a value is within a given range