code: def test_doc_freq_and_token2id_for_several_docs_with_one_word(self):
      # two docs
      texts = [["human"], ["human"]]
      d = HashDictionary(texts, myhash=zlib.adler32)
      expected = {31002: 2}
      self.assertEqual(d.dfs, expected)
      # only one token (human) should exist
      expected = {"human": 31002}
      self.assertEqual(d.token2id["human"], expected["human"])
      self.assertEqual(d.token2id.keys(), expected.keys())
  
      # three docs
      texts = [["human"], ["human"], ["human"]]
      d = HashDictionary(texts, myhash=zlib.adler32)
      expected = {31002: 3}
      self.assertEqual(d.dfs, expected)
      # only one token (human) should exist
      expected = {"human": 31002}
      self.assertEqual(d.token2id["human"], expected["human"])
      self.assertEqual(d.token2id.keys(), expected.keys())
  
      # four docs
      texts = [["human"], ["human"], ["human"], ["human"]]
      d = HashDictionary(texts, myhash=zlib.adler32)
      expected = {31002: 4}
      self.assertEqual(d.dfs, expected)
      # only one token (human) should exist
      expected = {"human": 31002}
      self.assertEqual(d.token2id["human"], expected["human"])
      self.assertEqual(d.token2id.keys(), expected.keys())
  
file_path: gensim/gensim/test/test_corpora_hashdictionary.py
imports: import logging
  import unittest
  import os
  import zlib
  from gensim.corpora.hashdictionary import HashDictionary
  from gensim.test.utils import get_tmpfile, common_texts
label_desc: Use image node_id 3 for calling the TestHashDictionary obj's underlying member method code with example usage: obj.test_doc_freq_and_token2id_for_several_docs_with_one_word() without return types