code: def test_right_padded_sequence_assertion():
      right_padded_sequence = [
          [True, True, False, False],
          [True, True, True, False],
      ]
      left_padded_sequence = [
          [False, False, True, True],
          [False, True, True, True],
      ]
  
      _ = sampler_py._check_sequence_is_right_padded(
          right_padded_sequence, False
      )
  
      with pytest.raises(tf.errors.InvalidArgumentError):
          _ = sampler_py._check_sequence_is_right_padded(
              left_padded_sequence, False
          )
  
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 10 for calling a global function with example usage: test_right_padded_sequence_assertion() without return types