docstr: Test result iterator.
docstr_tok: ["Test","result","iterator","."]
code: def test_result_iterator(self):
      """Test result iterator."""
      self._api.SetImageFile(self._image_file)
      self._api.Recognize()
      it = self._api.GetIterator()
      level = tesserocr.RIL.WORD
      for i, w in enumerate(tesserocr.iterate_level(it, level)):
          text = w.GetUTF8Text(level)
          blanks = w.BlanksBeforeWord()
          if i == 0:
              self.assertEqual(text, "The")
              self.assertEqual(blanks, 0)
          elif i == 1:
              self.assertEqual(text, "(quick)")
              self.assertEqual(blanks, 1)
          else:
              break
  
imports: import unittest
  import re
  import os.path
  import tesserocr
label_desc: Use image node_id 16 for calling the TestTessBaseApi obj's underlying member method code with example usage: obj.test_result_iterator() without return types