code: def unify_corpora_from_texts(text_list_t, text_list_r):
      """
      Merge two corpora into a single text file
  
      Args:
          text_list_t: A list of documents - target corpus (List[String])
          text_list_r: A list of documents - reference corpus (List[String])
      Returns:
          The path of the unified corpus
      """
      logger.info("prepare data for w2v training")
      out_file = str(path.join(data_dir, "corpus.txt"))
      try:
          with open(out_file, "w+", encoding="utf-8") as writer:
              write_text_list_to_file(text_list_t, writer)
              write_text_list_to_file(text_list_r, writer)
      except Exception as e:
          logger.error("Error: %s", str(e))
      return out_file
  
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 5 for calling a global function with example usage: unify_corpora_from_texts(text_list_t, text_list_r) and returns: out_file