code: def test_most_frequent_terms():
      tokenizer = Tokenizer("english")
      text = "wE wD wC wB wA wE WD wC wB wE wD WE wC wD wE"
      model = TfDocumentModel(text, tokenizer)
  
      assert model.most_frequent_terms(1) == ("we",)
      assert model.most_frequent_terms(2) == ("we", "wd")
      assert model.most_frequent_terms(3) == ("we", "wd", "wc")
      assert model.most_frequent_terms(4) == ("we", "wd", "wc", "wb")
      assert model.most_frequent_terms(5) == (
          "we",
          "wd",
          "wc",
          "wb",
          "wa",
      )
      assert model.most_frequent_terms() == (
          "we",
          "wd",
          "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 7 for calling a global function with example usage: test_most_frequent_terms() without return types