human
I wrote the below code

    def ChangeApp(key, app_id):
        if (key.app() == app_id):
            return key
        return datastore.Key.from_path(namespace=key.namespace(), _app=app_id, *key.to_path())
    app_id = datastore.Key.from_path('kind', 'name').app()
    return [ChangeApp(key, app_id) for key in keys]

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def ConvertKeys(keys):