code: def setNumberRange(key, keyType, start, end):
      '''check number range'''
      return And(
          And(keyType, error=SCHEMA_TYPE_ERROR % (key, keyType.__name__)),
          And(lambda n: start <= n <= end, error=SCHEMA_RANGE_ERROR % (key, '(%s,%s)' % (start, end))),
      f setNumberRange(key, keyType, start, end):
      '''check number range'''
      return And(
          And(keyType, error=SCHEMA_TYPE_ERROR % (key, keyType.__name__)),
          And(lambda n: start <= n <= end, error=SCHEMA_RANGE_ERROR % (key, '(%s,%s)' % (start, end))),
      )
docs: check number range