code: def create_temp_parallel_data(sources, targets):
      """
      Creates a temporary TFRecords file.
  
      Args:
        source: List of source sentences
        target: List of target sentences
  
      Returns:
        A tuple (sources_file, targets_file).
      """
      file_source = tempfile.NamedTemporaryFile()
      file_target = tempfile.NamedTemporaryFile()
      file_source.write("\n".join(sources).encode("utf-8"))
      file_source.flush()
      file_target.write("\n".join(targets).encode("utf-8"))
      file_target.flush()
      return file_source, file_target
  
file_path: seq2seq/seq2seq/test/utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import tempfile
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: create_temp_parallel_data(sources, targets) and returns: file_source,  file_target