code: def test_mega_rel_pos_bias(rel_pos_bias_type):
      vocab_size, labels = prepare()
  
      decoder = MEGADecoder(
          vocab_size,
          max_positions=1,
          rel_pos_bias_type=rel_pos_bias_type,
      )
  
      if rel_pos_bias_type == "simple":
          with pytest.raises(ValueError):
              _ = decoder(labels)
      else:
          _ = decoder(labels)
  
file_path: espnet/test/espnet2/asr_transducer/test_decoder.py
imports: import pytest
  import torch
  from espnet2.asr_transducer.decoder.mega_decoder import MEGADecoder
  from espnet2.asr_transducer.decoder.rnn_decoder import RNNDecoder
  from espnet2.asr_transducer.decoder.rwkv_decoder import RWKVDecoder
  from espnet2.asr_transducer.decoder.stateless_decoder import StatelessDecoder
label_desc: Use image node_id 7 for calling a global function with example usage: test_mega_rel_pos_bias(rel_pos_bias_type) without return types