code: def test_encoder_invalid_interctc_layer_idx():
      with pytest.raises(AssertionError):
          ConformerEncoder(
              20,
              num_blocks=2,
              interctc_layer_idx=[0, 1],
          )
      with pytest.raises(AssertionError):
          ConformerEncoder(
              20,
              num_blocks=2,
              interctc_layer_idx=[1, 2],
          )
  
file_path: espnet/test/espnet2/asr/encoder/test_conformer_encoder.py
imports: import pytest
  import torch
  from espnet2.asr.ctc import CTC
  from espnet2.asr.encoder.conformer_encoder import ConformerEncoder
label_desc: Use image node_id 4 for calling a global function with example usage: test_encoder_invalid_interctc_layer_idx() without return types