Python 3.9 is now generally available.

google.appengine.datastore.datastore_stub_util.IdToCounter

Map ID k to the counter value from which it was generated.

Determine whether k is sequential or scattered ID.

k ID from which to infer counter value.

Tuple of integers (counter_value, id_space).