docstr: Test context manager behavior
docstr_tok: ["Test","context","manager","behavior"]
code: def test_context_manager(self):
      """Test context manager behavior"""
      with self._api as api:
          self.assertIs(api, self._api)
          api.SetImageFile(self._image_file)
          self.assertEqual(api.GetUTF8Text(), self._api.GetUTF8Text())
      # assert api has Ended
      self.assertRaises(RuntimeError, self._api.GetUTF8Text)
  
imports: import unittest
  import re
  import os.path
  import tesserocr
label_desc: Use image node_id 3 for calling the TestTessBaseApi obj's underlying member method code with example usage: obj.test_context_manager() without return types