class_docstr: This class can be used to compose several encoders in sequence.
  
  Among other things, this can be used to add a "pre-contextualizer" before a Seq2SeqEncoder.
  
  Registered as a `Seq2SeqEncoder` with name "compose".
  
  # Parameters
  
  encoders : `List[Seq2SeqEncoder]`, required.
      A non-empty list of encoders to compose. The encoders must match in bidirectionality.
code: def get_output_dim(self) -> int:
      return self.encoders[-1].get_output_dim()
  
file_path: allennlp/allennlp/modules/seq2seq_encoders/compose_encoder.py
imports: import torch
  from typing import List
  from allennlp.modules.seq2seq_encoders.seq2seq_encoder import Seq2SeqEncoder
label_desc: Use image node_id 4 for calling the ComposeEncoder obj's underlying member method code with example usage: obj.get_output_dim() and returns: self