code: def tearDown(self):
      if pil_installed:
          self._image.close()
      self._api.End()
  
imports: import unittest
  import re
  import os.path
  import tesserocr
label_desc: Use image node_id 2 for calling the TestTessBaseApi obj's underlying member method code with example usage: obj.tearDown() without return types