How to use datastore id instead of key_name?
get_by__id()
no change; it's still a key whether it has an ID or a name
key().id()
How to define that?
What should be used instead of

get_by_key_name
SELECT __key__
key().name()