class_docstr: 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: onnxt5/onnxt5/models.py
imports: import torch
  import torch.nn.functional
  from tqdm import trange
label_desc: Use image node_id 2 for calling the SimplifiedT5Encoder obj's underlying member method code with example usage: obj.forward() and returns: self