code: def test_seq_to_seq_generation(self):
      model = self.big_model
      tokenizer = NllbTokenizer.from_pretrained("facebook/nllb-moe-54b")
  
      # first 6 samples of load_dataset("facebook/flores", "eng_Latn-fra_Latn"), devtest. Truth are very similar to the fairseq translation files
      FIRST_6_FLORES_200 = [
          'We now have 4-month-old mice that are non-diabetic that used to be diabetic," he added.',
          "Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days.",
          "Like some other experts, he is skeptical about whether diabetes can be cured, noting that these findings have no relevance to people who already have Type 1 diabetes.",
          "On Monday, Sara Danius, permanent secretary of the Nobel Committee for Literature at the Swedish Academy, publicly announced during a radio program on Sveriges Radio in Sweden the committee, unable to reach Bob Dylan directly about winning the 2016 Nobel Prize in Literature, had abandoned its efforts to reach him.",
          'Danius said, "Right now we are doing nothing. I have called and sent emails to his closest collaborator and received very friendly replies. For now, that is certainly enough."',
          "Previously, Ring's CEO, Jamie Siminoff, remarked the company started when his doorbell wasn't audible from his shop in his garage.",
      ]
      inputs = tokenizer(
          FIRST_6_FLORES_200, padding=True, return_tensors="pt"
      ).to(torch_device)
      batch_translation = model.generate(
          **inputs,
          forced_bos_token_id=tokenizer.lang_code_to_id["fra_Latn"],
      )
  
      EXPECTED_FAIRSEQ_TRANSLATION = [
          '"Nous avons maintenant des souris de 4 mois non diabétiques qui étaient diabétiques", a-t-il ajouté.',
          "Le docteur Ehud Ur, professeur de médecine à l'université Dalhousie, à Halifax, en Nouvelle-Écosse, et président de la division clinique et scientifique de l'Association canadienne du diabète, prévient que la recherche n'en est qu'à ses débuts.",
          "Comme d'autres spécialistes, il est sceptique quant à la guérison du diabète.",
          "Lundi, Sara Danius, secrétaire permanente du Comité Nobel de littérature à l'Académie suédoise, a annoncé publiquement lors d'une émission de radio sur Sveriges Radio en Suède que le comité, incapable de joindre Bob Dylan directement pour lui annoncer le prix Nobel de littérature 2016, avait abandonné ses efforts pour le joindre.",
          "Danius a déclaré: \"Pour l'instant, nous ne faisons rien. J'ai appelé et envoyé des courriels à son plus proche collaborateur et j'ai reçu des réponses très amicales. Pour l'instant, c'est certainement suffisant\".",
          "Auparavant, le PDG de Ring, Jamie Siminoff, a fait remarquer que la société avait commencé lorsque sa sonnette n'était pas audible depuis son magasin dans son garage.",
      ]
  
      translation = tokenizer.batch_decode(
          batch_translation.tolist(),
          clean_up_tokenization_spaces=True,
          skip_special_tokens=True,
      )
      assert translation == EXPECTED_FAIRSEQ_TRANSLATION
  
imports: import copy
  import tempfile
  import unittest
  from transformers import NllbMoeConfig, is_torch_available, set_seed
  from transformers.testing_utils import require_sentencepiece, require_tokenizers, require_torch, require_torch_fp16, slow, torch_device
  from transformers.utils import cached_property
  from ...generation.test_utils import GenerationTesterMixin
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, ids_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 7 for calling the NllbMoeModelIntegrationTests obj's underlying member method code with example usage: obj.test_seq_to_seq_generation() without return types