code: def test_doc_freq_and_collection_freq(self):
      # one doc
      texts = [["human", "human", "human"]]
      d = Dictionary(texts)
      self.assertEqual(d.cfs, {0: 3})
      self.assertEqual(d.dfs, {0: 1})
  
      # two docs
      texts = [["human", "human"], ["human"]]
      d = Dictionary(texts)
      self.assertEqual(d.cfs, {0: 3})
      self.assertEqual(d.dfs, {0: 2})
  
      # three docs
      texts = [["human"], ["human"], ["human"]]
      d = Dictionary(texts)
      self.assertEqual(d.cfs, {0: 3})
      self.assertEqual(d.dfs, {0: 3})
  
imports: from collections.abc import Mapping
  from itertools import chain
  import logging
  import unittest
  import codecs
  import os
  import os.path
  import scipy
  import gensim
  from gensim.corpora import Dictionary
  from gensim.utils import to_utf8
  from gensim.test.utils import get_tmpfile, common_texts
label_desc: Use image node_id 5 for calling the TestDictionary obj's underlying member method code with example usage: obj.test_doc_freq_and_collection_freq() without return types