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","."]
docstr: Test a simple TRA based bag-of-words model.
docstr_tok: ["Test","a","simple","TRA","based","bag-of-words","model","."]
code: def test_repeater(self):
      """
      Test a simple TRA based bag-of-words model.
      """
      valid, test = testing_utils.train_model(
          dict(
              task="integration_tests",
              model="examples/tra",
              num_epochs=NUM_EPOCHS,
              batchsize=BATCH_SIZE,
          )
      )
  
      self.assertGreater(valid["accuracy"], 0.8)
      self.assertGreater(test["accuracy"], 0.8)
      self.assertEqual(test["exs"], 100)
  
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 2 for calling the TestExampleSeq2Seq obj's underlying member method code with example usage: obj.test_repeater() without return types