class_docstr: Checks that the example seq2seq generator model gives the expected ppl.
class_docstr_tok: ["Checks","that","the","example","seq2seq","generator","model","gives","the","expected","ppl","."]
code: def test_generation(self):
      valid, test = testing_utils.train_model(
          dict(
              task="integration_tests:nocandidate",
              model="examples/seq2seq",
              learningrate=LR,
              batchsize=BATCH_SIZE,
              num_epochs=NUM_EPOCHS,
              hidden_size=16,
              gradient_clip=1.0,
              skip_generation=True,
          )
      )
  
      self.assertGreater(valid["token_acc"], 0.8)
      self.assertGreater(test["token_acc"], 0.8)
  
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 1 for calling the TestExampleSeq2Seq obj's underlying member method code with example usage: obj.test_generation() without return types