class_docstr: Tests the ExtendedMultiRNNCell
class_docstr_tok: ["Tests","the","ExtendedMultiRNNCell"]
code: def test_residuals_concat(self):
      inputs = np.random.randn(1, 2)
      with tf.variable_scope("same_input_size"):
          res_ = self._test_with_residuals(
              inputs, residual_combiner="concat"
          )
          self.assertEqual(res_[0].shape, (1, 6))
          self.assertEqual(res_[1][0].shape, (1, 2))
          self.assertEqual(res_[1][1].shape, (1, 2))
  
      inputs = np.random.randn(1, 5)
      with tf.variable_scope("diff_input_size"):
          res_ = self._test_with_residuals(
              inputs, residual_combiner="concat"
          )
          self.assertEqual(res_[0].shape, (1, 5 + 2 + 2))
          self.assertEqual(res_[1][0].shape, (1, 2))
          self.assertEqual(res_[1][1].shape, (1, 2))
  
      inputs = np.random.randn(1, 2)
      with tf.variable_scope("same_input_size_dense"):
          res_ = self._test_with_residuals(
              inputs, residual_combiner="concat", residual_dense=True
          )
          self.assertEqual(res_[0].shape, (1, 2 + 4 + 2))
          self.assertEqual(res_[1][0].shape, (1, 2))
          self.assertEqual(res_[1][1].shape, (1, 2))
  
      inputs = np.random.randn(1, 5)
      with tf.variable_scope("diff_input_size_dense"):
          res_ = self._test_with_residuals(
              inputs, residual_combiner="concat", residual_dense=True
          )
          self.assertEqual(res_[0].shape, (1, 2 + (5 + 2) + 5))
          self.assertEqual(res_[1][0].shape, (1, 2))
          self.assertEqual(res_[1][1].shape, (1, 2))
  
file_path: seq2seq/seq2seq/test/rnn_cell_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import tensorflow
  from seq2seq.contrib import rnn_cell
  import numpy
label_desc: Use image node_id 6 for calling the ExtendedMultiRNNCellTest obj's underlying member method code with example usage: obj.test_residuals_concat() without return types