code: def akismet_check(comment, content_object, request):
      
      # Return previously cached response
      akismet_result = getattr(comment, '_akismet_result_', None)
      if akismet_result is not None:
          return akismet_result
  
      # Get Akismet data
      AKISMET_API_KEY = appsettings.AKISMET_API_KEY
      if not AKISMET_API_KEY:
          raise ImproperlyConfigured('You must set AKISMET_API_KEY to use comment moderation with Akismet.')
  
      current_domain = get_current_site(request).domain
      auto_blog_url = '{0}://{1}/'.format(request.is_secure() and 'https' or 'http', current_domain)
      blog_url = appsettings.AKISMET_BLOG_URL or auto_blog_url
  
      akismet = Akismet(
          AKISMET_API_KEY,
          blog=blog_url,
          is_test=int(bool(appsettings.AKISMET_IS_TEST)),
          application_user_agent='django-fluent-comments/{0}'.format(fluent_comments.__version__),
      )
  
      akismet_data = _get_akismet_data(blog_url, comment, content_object, request)
      akismet_result = akismet.check(**akismet_data)  # raises AkismetServerError when key is invalid
      setattr(comment, "_akismet_result_", akismet_result)
      return akismet_result
docs: Connects to Akismet and evaluates to True if Akismet marks this comment as spam.
  
      :rtype: akismet.SpamStatus