class_docstr: Creation of a class to output only the last hidden state from the encoder 
class_docstr_tok: ["Creation","of","a","class","to","output","only","the","last","hidden","state","from","the","encoder"]
code: def forward(self, *input, **kwargs):
      return self.encoder(*input, **kwargs)[0]
  
file_path: fastT5/fastT5/onnx_models_structure.py
imports: import torch
label_desc: Use image node_id 2 for calling the T5Encoder obj's underlying member method code with example usage: obj.forward() and returns: self