code: def test_pretokenized_words_frequencies():
      model = TfDocumentModel(("wC", "wC", "WC", "wA", "WB", "wB"))
  
      assert model.term_frequency("wa") == 1
      assert model.term_frequency("wb") == 2
      assert model.term_frequency("wc") == 3
      assert model.term_frequency("wd") == 0
  
      assert model.most_frequent_terms() == ("wc", "wb", "wa")
  
file_path: sumy/tests/test_models/test_tf.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import pytest
  from sumy.models import TfDocumentModel
  from sumy.nlp.tokenizers import Tokenizer
label_desc: Use image node_id 3 for calling a global function with example usage: test_pretokenized_words_frequencies() without return types