def with_options(self, **kwargs):
        # PyMongo's method gets several positional arguments. We support
        # only write_concern for now which is the 3rd positional argument.
        # So we are using **kwargs here to force user's code to specify
        # write_concern as named argument, so adding other args in future
        # won't break compatibility
        write_concern = kwargs.get("write_concern") or self.__write_concern

        return Collection(self._database, self._collection_name,
                          write_concern=write_concern)
Implementation of AppIdentityService::GetServiceAccountName.
dataset/ETHPy150Open twisted/txmongo/txmongo/collection.py/Collection.with_options--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/app_identity/app_identity_keybased_stub.py/KeyBasedAppIdentityServiceStub._Dynamic_GetServiceAccountName