class_docstr: Tests the `BasicDecoder` class.
    
class_docstr_tok: ["Tests","the","`","BasicDecoder","`","class","."]
code: def create_decoder(self, helper, mode):
      params = BasicDecoder.default_params()
      params["max_decode_length"] = self.max_decode_length
      decoder = BasicDecoder(
          params=params, mode=mode, vocab_size=self.vocab_size
      )
  
      return decoder
  
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.decoders import BasicDecoder, AttentionDecoder, AttentionLayerDot
  from seq2seq.decoders import beam_search_decoder
  from seq2seq.inference import beam_search
  from seq2seq.contrib.seq2seq import helper
label_desc: Use image node_id 2 for calling the BasicDecoderTest obj's underlying member method code with example usage: obj.create_decoder(helper, mode) and returns: decoder