class_docstr: Checks that seq2seq can learn some very basic tasks.
docstr: This test uses a single-turn sequence repitition task.
code: def test_generation(self):
      """
      This test uses a single-turn sequence repitition task.
      """
      valid, test = testing_utils.eval_model(
          dict(
              task="integration_tests:multiturn_nocandidate",
              model="seq2seq",
              model_file="zoo:unittest/seq2seq/model",
              dict_file="zoo:unittest/seq2seq/model.dict",
              skip_generation=False,
              inference="greedy",
              batchsize=8,
              num_examples=32,
          )
      )
  
      self.assertLess(valid["ppl"], 1.2)
      self.assertLess(test["ppl"], 1.2)
  
file_path: ParlAI/tests/test_seq2seq.py
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 2 for calling the TestSeq2Seq obj's underlying member method code with example usage: obj.test_generation() without return types