Python 3.9 is now generally available.

google.appengine.api.apiproxy_stub_map.CreateRPC

Creates a RPC instance for the given service.

The instance is suitable for talking to remote services. Each RPC instance can be used only once, and should not be reused.

service string. Represents which service to call.
stubmap Optional APIProxyStubMap instance, for dependency injection.

The rpc object.

AssertionError or RuntimeError if the stub for service doesn't supply a CreateRPC method.