class_docstr: T5 Agent.
  
  Relies on the T5 model implemented in huggingface
class_docstr_tok: ["T5","Agent",".","Relies","on","the","T5","model","implemented","in","huggingface"]
docstr: Overrides TorchAgent.build_dictionary to use t5 dict.
docstr_tok: ["Overrides","TorchAgent.build_dictionary","to","use","t5","dict","."]
code: def build_dictionary(self):
      """
      Overrides TorchAgent.build_dictionary to use t5 dict.
      """
      return T5DictionaryAgent(self.opt)
  
imports: import torch
  from typing import Optional, Dict, Any, Tuple
  from transformers import T5ForConditionalGeneration
  from parlai.agents.hugging_face.hugging_face import HF_VERSION
  from parlai.agents.hugging_face.dict import T5DictionaryAgent
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.core.torch_agent import Batch, TorchAgent
  from parlai.core.torch_generator_agent import TorchGeneratorAgent, TorchGeneratorModel
  from parlai.utils.fsdp import is_fsdp, delay_halving
label_desc: Use image node_id 3 for calling the T5Agent obj's underlying member method code with example usage: obj.build_dictionary() and returns: T5DictionaryAgent