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","`","."]
docstr: Tests beam search with BasicRNNDecoder.
          
docstr_tok: ["Tests","beam","search","with","BasicRNNDecoder","."]
code: def test_basic_rnn_decoder_beam_search(self):
      """Tests beam search with BasicRNNDecoder."""
      hparams = {"rnn_cell": {"kwargs": {"num_units": self._cell_dim}}}
      decoder = tx.modules.BasicRNNDecoder(
          vocab_size=self._vocab_size, hparams=hparams
      )
  
      self._test_beam_search(decoder)
  
      self._test_beam_search(
          decoder, beam_width_1=self._beam_width, initiated=True
      )
  
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 3 for calling the BeamSearchDecodeTest obj's underlying member method code with example usage: obj.test_basic_rnn_decoder_beam_search() without return types