Python 3.9 is now generally available.

google.appengine.datastore.datastore_stub_util.CheckPropertyValue

Check if this property value can be stored.

name name of the property
value entity_pb2.PropertyValue
max_length maximum length for string values
meaning meaning of the property

apiproxy_errors.ApplicationError if the property is invalid