code: def test_ambiguous_order():
      with pytest.raises(
          ValueError, match="because of ambiguous order"
      ):
          _, _, _, logits, targets, weights, _ = get_test_data()
          seq_loss = loss.SequenceLoss(
              average_across_timesteps=False,
              average_across_batch=True,
              sum_over_timesteps=True,
              sum_over_batch=False,
          )
          seq_loss(targets, logits, weights).numpy()
  
file_path: addons/tensorflow_addons/seq2seq/tests/loss_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.seq2seq import loss
label_desc: Use image node_id 6 for calling a global function with example usage: test_ambiguous_order() without return types