class_docstr: Tests
  :func:`texar.tf.modules.decoders.beam_search_decode.beam_search_decode`.
class_docstr_tok: ["Tests",":","func",":","`","texar.tf.modules.decoders.beam_search_decode.beam_search_decode","`","."]
code: def setUp(self):
      tf.test.TestCase.setUp(self)
      self._vocab_size = 10
      self._max_time = 16
      self._batch_size = 8
      self._emb_dim = 20
      self._cell_dim = 256
      self._attention_dim = self._cell_dim
      self._beam_width = 11
      self._inputs = tf.random_uniform(
          [self._batch_size, self._max_time, self._emb_dim],
          maxval=1.0,
          dtype=tf.float32,
      )
      self._embedding = tf.random_uniform(
          [self._vocab_size, self._emb_dim],
          maxval=1.0,
          dtype=tf.float32,
      )
      self._encoder_output = tf.random_uniform(
          [self._batch_size, self._max_time, 64]
      )
  
file_path: texar/tests/modules/decoders/beam_search_decode_test.py
imports: import numpy
  import tensorflow
  from tensorflow.contrib.seq2seq import dynamic_decode
  from tensorflow.contrib.seq2seq import BeamSearchDecoder, tile_batch
  import texar.tf
  from texar.tf.modules.decoders.beam_search_decode import beam_search_decode
  from texar.tf import context
label_desc: Use image node_id 1 for calling the BeamSearchDecodeTest obj's underlying member method code with example usage: obj.setUp() without return types