code: def setType(key, type):
      '''check key type'''
      return And(type, error=SCHEMA_TYPE_ERROR % (key, type.__name__)f setType(key, type):
      '''check key type'''
      return And(type, error=SCHEMA_TYPE_ERROR % (key, type.__name__))
docs: check key type