class_docstr: Wrapper class for machine translation.
code: def __init__(self, model: lit_model.Model):
      model = validate_t5_model(model)
      super().__init__(model)
  
imports: import re
  import attr
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.examples.models import model_utils
  from lit_nlp.lib import file_cache
  from lit_nlp.lib import utils
  import tensorflow
  import tensorflow_text
  import transformers
  from rouge_score import rouge_scorer
label_desc: Use image node_id 1 to create a new TranslationWrapper object from inherited base classes: lit_model with example: obj = TranslationWrapper(model)