class_docstr: Tests the PoolingEncoder class.
class_docstr_tok: ["Tests","the","PoolingEncoder","class","."]
code: def test_encode_with_pos(self):
      self._test_with_params(
          {
              "position_embeddings.enable": True,
              "position_embeddings.num_positions": self.sequence_length,
          }
      )
  
file_path: seq2seq/seq2seq/test/pooling_encoder_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import tensorflow
  import numpy
  from seq2seq.encoders import PoolingEncoder
label_desc: Use image node_id 3 for calling the PoolingEncoderTest obj's underlying member method code with example usage: obj.test_encode_with_pos() without return types