code: def write_text_list_to_file(text_list, writer):
      """
      Merge a list of texts into a single text file
  
      Args:
          text_list: A list of texts (List[String])
          writer: A file writer
      """
      try:
          for text in text_list:
              writer.writelines(text)
      except Exception as e:
          logger.error("Error: %s", str(e))
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import csv
  import logging
  import os
  import sys
  from multiprocessing import Pool
  from os import makedirs, path
  from nlp_architect import LIBRARY_OUT
  from nlp_architect.utils.embedding import FasttextEmbeddingsModel
  from nlp_architect.utils.io import validate_existing_directory
  from nlp_architect.utils.text import SpacyInstance
  from .np_scorer import NPScorer
label_desc: Use image node_id 8 for calling a global function with example usage: write_text_list_to_file(text_list, writer) without return types