code: def write_words(words_list, filename):
      with codecs.open(filename, "w+", "utf-8") as myfile:
          for words in words_list:
              myfile.write(" ".join(words) + "\n")
  
file_path: texar/examples/transformer/utils/data_utils.py
imports: import os
  import codecs
  import six
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: write_words(words_list, filename) without return types