code: def test_compute_word_freq(summarizer):
      words = ["one", "two", "three", "four"]
      freq = summarizer._compute_word_freq(words)
  
      assert freq.get("one", 0) == 1
      assert freq.get("two", 0) == 1
      assert freq.get("three", 0) == 1
      assert freq.get("four", 0) == 1
  
      words = ["one", "one", "two", "two"]
      freq = summarizer._compute_word_freq(words)
  
      assert freq.get("one", 0) == 2
      assert freq.get("two", 0) == 2
      assert freq.get("three", 0) == 0
  
file_path: sumy/tests/test_summarizers/test_kl.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  import pytest
  from sumy.models.dom._sentence import Sentence
  from sumy.nlp.tokenizers import Tokenizer
  from sumy.summarizers.kl import KLSummarizer
  from ..utils import build_document
label_desc: Use image node_id 6 for calling a global function with example usage: test_compute_word_freq(summarizer) without return types