code: def test_layout_getcomponents(self):
      self._api.Init()
      self._api.SetImageFile(self._image_file)
      result = self._api.GetComponentImages(tesserocr.RIL.BLOCK, True)
      # Test if not empty
      self.assertTrue(result)
      _, xywh, _, _ = result[0]  # bbox of largest
      self.assertIn("w", xywh)
      self.assertIn("h", xywh)
      area = xywh["w"] * xywh["h"]
      # Test if the largest block is quite large
      self.assertGreater(area, 400000)
  
imports: import unittest
  import re
  import os.path
  import tesserocr
label_desc: Use image node_id 22 for calling the TestTessBaseApi obj's underlying member method code with example usage: obj.test_layout_getcomponents() without return types