code: def test_RNNDecoder_init_state(context_residual, rnn_type):
      decoder = RNNDecoder(
          10, 12, context_residual=context_residual, rnn_type=rnn_type
      )
      x = torch.randn(9, 12)
      state = decoder.init_state(x)
      t = torch.randint(0, 10, [4], dtype=torch.long)
      decoder.score(t, state, x)
  
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 2 for calling a global function with example usage: test_RNNDecoder_init_state(context_residual, rnn_type) without return types