Python 3.9 is now generally available.

google.appengine.datastore.datastore_stub_util.StoreRecord

Prepares a record for storing.

record an EntityRecord to prepare

A copy of the record that can be stored.