Python 3.9 is now generally available.

google.appengine.datastore.datastore_index.IndexDefinitionsToKeys

Convert IndexDefinitions to a set of keys.

indexes A datastore_index.IndexDefinitions instance, or None.

A set of keys constructed from the argument, each key being a tuple of the form (kind, ancestor, properties) where properties is a tuple of PropertySpec objects.