code: def _verify_parsed_token(parsed_token, issuers, audiences, allowed_client_ids, is_legacy_google_auth=True):
    if parsed_token.get('iss') not in issuers:
      _logger.warning('Issuer was not valid: %s', parsed_token.get('iss'))
      return False
    aud = parsed_token.get('aud')
    if not aud:
      _logger.warning('No aud field in token')
      return False
    cid = parsed_token.get('azp')
    audience_allowed = (aud in audiences) or (is_legacy_google_auth and aud == cid)
    if not audience_allowed:
      _logger.warning('Audience not allowed: %s', aud)
      return False
    if is_legacy_google_auth:
      if list(allowed_client_ids) == SKIP_CLIENT_ID_CHECK:
        _logger.warning('Client ID check can\'t be skipped for ID tokens.  '
                        'Id_token cannot be verified.')
        return False
      elif not cid or cid not in allowed_client_ids:
        _logger.warning('Client ID is not allowed: %s', cid)
        return False
    if 'email' not in parsed_token:
      return False
    return True