class_docstr: Checks that seq2seq can learn some very basic tasks.
code: def test_ranking(self):
      valid, test = testing_utils.train_model(
          dict(
              task="integration_tests:overfit",
              model="seq2seq",
              learningrate=LR,
              batchsize=BATCH_SIZE,
              validation_every_n_epochs=10,
              validation_metric="ppl",
              num_epochs=100,
              embeddingsize=16,
              hiddensize=16,
              rnn_class="gru",
              attention="general",
              gradient_clip=1.0,
              dropout=0.0,
              lookuptable="all",
              skip_generation=True,
              rank_candidates=True,
          )
      )
      assert valid["hits@1"] >= 0.95
  
file_path: ParlAI/tests/test_seq2seq.py
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 1 for calling the TestSeq2Seq obj's underlying member method code with example usage: obj.test_ranking() without return types