docstr: `HashDictionary` can be saved as textfile. 
docstr_tok: ["`","HashDictionary","`","can","be","saved","as","textfile","."]
code: def test_saveAsText(self):
      """`HashDictionary` can be saved as textfile."""
      tmpf = get_tmpfile("dict_test.txt")
      # use some utf8 strings, to test encoding serialization
      d = HashDictionary(
          [
              "žloťoučký koníček".split(),
              "Малйж обльйквюэ ат эжт".split(),
          ]
      )
      d.save_as_text(tmpf)
      self.assertTrue(os.path.exists(tmpf))
  
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 9 for calling the TestHashDictionary obj's underlying member method code with example usage: obj.test_saveAsText() without return types