code: def test_RNNDecoder_invalid_type():
      with pytest.raises(ValueError):
          RNNDecoder(10, 12, rnn_type="foo")
  
imports: import pytest
  import torch
  from espnet2.asr.decoder.rnn_decoder import RNNDecoder
  from espnet.nets.beam_search import BeamSearch
label_desc: Use image node_id 3 for calling a global function with example usage: test_RNNDecoder_invalid_type() without return types