class_docstr: Encoder based on a user-supplied vocabulary (file or list).
docstr: Write vocab file to disk.
  
  Vocab files have one token per line. The file ends in a newline. Reserved
  tokens are written to the vocab file as well.
  
  Args:
  filename: Full path of the file to store the vocab to.
code: def store_to_file(self, filename):
      """Write vocab file to disk.
  
      Vocab files have one token per line. The file ends in a newline. Reserved
      tokens are written to the vocab file as well.
  
      Args:
      filename: Full path of the file to store the vocab to.
      """
      with open(filename, "w") as f:
          for i in range(len(self._id_to_token)):
              f.write(self._id_to_token[i] + "\n")
  
imports: import re
  import six
label_desc: Use image node_id 15 for calling the TokenTextEncoder obj's underlying member method code with example usage: obj.store_to_file(filename) without return types