code: def test_TransformerDecoder_invalid_type(decoder_class):
      with pytest.raises(ValueError):
          decoder_class(10, 12, input_layer="foo")
  
file_path: espnet/test/espnet2/asr/decoder/test_transformer_decoder.py
imports: import pytest
  import torch
  from espnet2.asr.ctc import CTC
  from espnet2.asr.decoder.transformer_decoder import DynamicConvolution2DTransformerDecoder, DynamicConvolutionTransformerDecoder, LightweightConvolution2DTransformerDecoder, LightweightConvolutionTransformerDecoder, TransformerDecoder
  from espnet.nets.batch_beam_search import BatchBeamSearch
  from espnet.nets.batch_beam_search_online_sim import BatchBeamSearchOnlineSim
  from espnet.nets.beam_search import BeamSearch
  from espnet.nets.scorers.ctc import CTCPrefixScorer
label_desc: Use image node_id 3 for calling a global function with example usage: test_TransformerDecoder_invalid_type(decoder_class) without return types