def _Dynamic_GetAccessToken(self, request, response):
    """Implementation of AppIdentityService::GetAccessToken.

    This API requires internet access.

    Raises:
      apiproxy_errors.ApplicationError: If unexpected response from
                                        Google server.
    """
    scope = ' '.join(request.scope_list())
    with self._access_token_cache_lock:
      rv = self._access_token_cache.get(scope, None)
    now = int(time.time())

    if not (rv and (now + 60) > rv['expires']):
      credentials = self._credentials
      if credentials.create_scoped_required():
        credentials = credentials.create_scoped(request.scope_list())
      token = credentials.get_access_token()
      rv = {
          'access_token': token.access_token,
          'expires': now + token.expires_in,
      }
      with self._access_token_cache_lock:
        self._access_token_cache[scope] = rv

    response.set_access_token(rv['access_token'])
    response.set_expiration_time(rv['expires'])
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/app_identity/app_identity_defaultcredentialsbased_stub.py/DefaultCredentialsBasedAppIdentityServiceStub._Dynamic_GetAccessToken/swapped operands of `>`