code: def test_invalid_block_io():
      with pytest.raises(ValueError):
          _, _, _ = build_blocks(
              "encoder",
              4,
              "linear",
              [
                  {
                      "type": "transformer",
                      "d_hidden": 2,
                      "d_ff": 8,
                      "heads": 1,
                  },
                  {
                      "type": "transformer",
                      "d_hidden": 4,
                      "d_ff": 8,
                      "heads": 1,
                  },
              ],
          )
  
imports: import argparse
  import json
  import tempfile
  import pytest
  import torch
  from packaging.version import parse
  import espnet.lm.pytorch_backend.extlm
  import espnet.nets.pytorch_backend.lm.default
  from espnet.asr.pytorch_backend.asr_init import load_trained_model
  from espnet.nets.beam_search_transducer import BeamSearchTransducer
  from espnet.nets.pytorch_backend.e2e_asr_transducer import E2E
  from espnet.nets.pytorch_backend.transducer.blocks import build_blocks
label_desc: Use image node_id 15 for calling a global function with example usage: test_invalid_block_io() without return types