Python 3.9 is now generally available.

google.appengine.datastore.datastore_index.IndexToKey

Converts Index to key.

index A datastore_index.Index instance (not None).

A tuple of the form (kind, ancestor, properties) where properties is a sequence of PropertySpec objects derived from the Index.