class_docstr: Base class for EncoderDecoder tests. Tests for specific classes should
  inherit from this and tf.test.TestCase.
code: def test_infer(self):
      model, fetches_ = self._test_pipeline(
          tf.contrib.learn.ModeKeys.INFER
      )
      (predictions_,) = fetches_
      pred_len = predictions_["predicted_ids"].shape[1]
  
      np.testing.assert_array_equal(
          predictions_["logits"].shape,
          [
              self.batch_size,
              pred_len,
              model.target_vocab_info.total_size,
          ],
      )
      np.testing.assert_array_equal(
          predictions_["predicted_ids"].shape,
          [self.batch_size, pred_len],
      )
  
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 7 for calling the EncoderDecoderTests obj's underlying member method code with example usage: obj.test_infer() without return types