class_docstr: Checks that Hred can learn some very basic tasks.
code: def test_generation(self):
      valid, test = testing_utils.train_model(
          dict(
              task="integration_tests:overfit",
              model="hred",
              optimizer="sgd",
              momentum=0.9,
              learningrate=1.0,
              lr_scheduler="none",
              batchsize=4,
              num_epochs=100,
              validation_every_n_epochs=4,
              validation_metric="ppl",
              embeddingsize=16,
              hiddensize=32,
              numlayers=1,
              dropout=0.0,
              skip_generation=True,
          )
      )
      self.assertLess(valid["ppl"], 2)
  
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 1 for calling the TestHred obj's underlying member method code with example usage: obj.test_generation() without return types