class_docstr: Basic tests on the train_model.py example.
code: def _run_display_test(self, kwargs):
      with testing_utils.capture_output() as stdout:
          parser = setup_args()
          parser.set_defaults(**kwargs)
          opt = parser.parse_args([])
          agent = RepeatLabelAgent(opt)
          world = create_task(opt, agent)
          display(opt)
  
      str_output = stdout.getvalue()
      self.assertTrue(
          "loaded {} episodes with a total of {} examples".format(
              world.num_episodes(), world.num_examples()
          )
          in str_output,
          "Wizard of Wikipedia failed with following args: {}".format(
              opt
          )
          + str_output,
      )
  
file_path: ParlAI/tests/tasks/test_wizard_of_wikipedia.py
imports: from parlai.scripts.display_data import display_data, setup_args
  from parlai.agents.repeat_label.repeat_label import RepeatLabelAgent
  from parlai.core.message import Message
  from parlai.core.metrics import F1Metric, AverageMetric
  from parlai.core.teachers import create_task_agent_from_taskname
  from parlai.core.worlds import create_task
  from parlai.tasks.wizard_of_wikipedia.agents import TOKEN_KNOWLEDGE
  import unittest
  import itertools
  import parlai.utils.testing
label_desc: Use image node_id 2 for calling the TestWoW obj's underlying member method code with example usage: obj._run_display_test(kwargs) without return types