class_docstr: Test of BART model.
docstr: Test out-of-the-box BART generation.
code: def test_bart_gen(self):
      """
      Test out-of-the-box BART generation.
      """
      opt = ParlaiParser(True, True).parse_args(["--model", "bart"])
      bart = create_agent(opt)
      text = "Don't have a cow, Man!"
      obs = {"text": text, "episode_done": True}
      bart.observe(obs)
      act = bart.act()
  
      self.assertEqual(act["text"], text)
  
file_path: ParlAI/tests/nightly/gpu/test_bart.py
imports: import os
  import unittest
  from parlai.core.agents import create_agent
  from parlai.core.params import ParlaiParser
  import parlai.utils.testing
  from parlai.utils.testing import tempdir
label_desc: Use image node_id 2 for calling the TestBartModel obj's underlying member method code with example usage: obj.test_bart_gen() without return types