code: def validate_architecture(
      input_conf: Dict[str, Any],
      body_conf: List[Dict[str, Any]],
      input_size: int,
  ) -> Tuple[int, int]:
      """Validate specified architecture is valid.
  
      Args:
          input_conf: Encoder input block configuration.
          body_conf: Encoder body blocks configuration.
          input_size: Encoder input size.
  
      Returns:
          input_block_osize: Encoder input block output size.
          : Encoder body block output size.
  
      """
      input_block_osize = validate_input_block(
          input_conf, body_conf[0], input_size
      )
  
      cmp_io = []
  
      for i, b in enumerate(body_conf):
          _io = validate_block_arguments(
              b,
              (i + 1),
              input_block_osize if i == 0 else cmp_io[i - 1][1],
          )
  
          cmp_io.append(_io)
  
      for i in range(1, len(cmp_io)):
          if cmp_io[(i - 1)][1] != cmp_io[i][0]:
              raise ValueError(
                  "Output/Input mismatch between blocks %d and %d"
                  " in the encoder body." % ((i - 1), i)
              )
  
      return input_block_osize, cmp_io[-1][1]
  
imports: from typing import Any, Dict, List, Tuple
  from espnet2.asr_transducer.utils import get_convinput_module_parameters
label_desc: Use image node_id 3 for calling a global function with example usage: validate_architecture(input_conf, body_conf, input_size) and returns: input_block_osize,  cmp_io