class_docstr: Checks that seq2seq can learn some very basic tasks.
docstr: Ensures beam search can generate the correct response.
code: def test_beamsearch(self):
      """
      Ensures beam search can generate the correct response.
      """
      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="beam",
              beam_size=5,
              num_examples=16,
          )
      )
      self.assertGreater(valid["accuracy"], 0.95)
      self.assertGreater(test["accuracy"], 0.95)
  
file_path: ParlAI/tests/test_seq2seq.py
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 3 for calling the TestSeq2Seq obj's underlying member method code with example usage: obj.test_beamsearch() without return types