code: def test_basic_decoder_with_attention_wrapper():
      units = 32
      vocab_size = 1000
      attention_mechanism = attention_wrapper.LuongAttention(units)
      cell = tf.keras.layers.LSTMCell(units)
      cell = attention_wrapper.AttentionWrapper(
          cell, attention_mechanism
      )
      output_layer = tf.keras.layers.Dense(vocab_size)
      sampler = sampler_py.TrainingSampler()
      # BasicDecoder should accept a non initialized AttentionWrapper.
      basic_decoder.BasicDecoder(
          cell, sampler, output_layer=output_layer
      )
  
file_path: addons/tensorflow_addons/seq2seq/tests/basic_decoder_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.seq2seq import attention_wrapper
  from tensorflow_addons.seq2seq import basic_decoder
  from tensorflow_addons.seq2seq import sampler
label_desc: Use image node_id 9 for calling a global function with example usage: test_basic_decoder_with_attention_wrapper() without return types