class_docstr: Base class for EncoderDecoder tests. Tests for specific classes should
  inherit from this and tf.test.TestCase.
docstr: Helper function to test the full model pipeline.
      
docstr_tok: ["Helper","function","to","test","the","full","model","pipeline","."]
code: def _test_pipeline(self, mode, params=None):
      """Helper function to test the full model pipeline."""
      # Create source and target example
      source_len = self.sequence_length + 5
      target_len = self.sequence_length + 10
      source = " ".join(np.random.choice(self.vocab_list, source_len))
      target = " ".join(np.random.choice(self.vocab_list, target_len))
      sources_file, targets_file = test_utils.create_temp_parallel_data(
          sources=[source], targets=[target]
      )
  
      # Build model graph
      model = self.create_model(mode, params)
      input_pipeline_ = input_pipeline.ParallelTextInputPipeline(
          params={
              "source_files": [sources_file.name],
              "target_files": [targets_file.name],
          },
          mode=mode,
      )
      input_fn = training_utils.create_input_fn(
          pipeline=input_pipeline_, batch_size=self.batch_size
      )
      features, labels = input_fn()
      fetches = model(features, labels, None)
      fetches = [_ for _ in fetches if _ is not None]
  
      with self.test_session() as sess:
          sess.run(tf.global_variables_initializer())
          sess.run(tf.local_variables_initializer())
          sess.run(tf.tables_initializer())
          with tf.contrib.slim.queues.QueueRunners(sess):
              fetches_ = sess.run(fetches)
  
      sources_file.close()
      targets_file.close()
  
      return model, fetches_
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from collections import namedtuple
  import yaml
  import numpy
  import tensorflow
  from seq2seq.data import vocab, input_pipeline
  from seq2seq.training import utils
  from seq2seq.test import utils
  from seq2seq.models import BasicSeq2Seq, AttentionSeq2Seq
label_desc: Use image node_id 5 for calling the EncoderDecoderTests obj's underlying member method code with example usage: obj._test_pipeline(mode, params) and returns: model,  fetches_