code: def test_term_frequency():
      tokenizer = Tokenizer("english")
      text = "wA wB wC wA wA wC wD wCwB"
      model = TfDocumentModel(text, tokenizer)
  
      assert model.term_frequency("wa") == 3
      assert model.term_frequency("wb") == 1
      assert model.term_frequency("wc") == 2
      assert model.term_frequency("wd") == 1
      assert model.term_frequency("wcwb") == 1
      assert model.term_frequency("we") == 0
      assert model.term_frequency("missing") == 0
  
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 6 for calling a global function with example usage: test_term_frequency() without return types