class_docstr: Basic tests on the display_data.py example.
class_docstr_tok: ["Basic","tests","on","the","display_data.py","example","."]
docstr: Does display_data reach the end of the loop?
docstr_tok: ["Does","display_data","reach","the","end","of","the","loop","?"]
code: def test_output(self):
      """
      Does display_data reach the end of the loop?
      """
      str_output, _, _ = testing_utils.display_data(
          {"num_examples": 1, "task": "babi:task1k:1", "verbose": True}
      )
  
      self.assertGreater(len(str_output), 0, "Output is empty")
      self.assertIn(
          "babi:task1k:1", str_output, "Babi task did not print"
      )
      self.assertIn("~~", str_output, "Example output did not complete")
  
imports: import unittest
  import parlai.utils.testing
label_desc: Use image node_id 1 for calling the TestDisplayData obj's underlying member method code with example usage: obj.test_output() without return types