Python 3.9 is now generally available.

google.appengine.datastore.datastore_stub_util.CheckTransaction

Check that this transaction is valid.

request_trusted If the request is trusted.
request_app_id The application ID of the app making the request.
transaction datastore_pb.Transaction()

apiproxy_errors.ApplicationError if the transaction is not valid.