code: def test_translation(self):
      prompt = "translate English to French: I was a victim of a series of accidents."
      output_pytorch = self.generative_t5_pytorch(
          prompt, 100, temperature=0.0
      )[0]
      output_onnx = self.generative_t5_onnx(
          prompt, 100, temperature=0.0
      )[0]
      assert (
          output_pytorch
          == output_onnx
          == "J'ai été victime d'une série d'accidents."
      )
  
file_path: onnxt5/tests/tests_models.py
imports: import unittest
  import torch
  from onnxt5 import create_t5_encoder_decoder, GenerativeT5
  from onnxt5.api import get_encoder_decoder_tokenizer
label_desc: Use image node_id 2 for calling the TestTasks obj's underlying member method code with example usage: obj.test_translation() without return types