code: def test_compute_hmean(self):
      with self.assertRaises(AssertionError):
          compute_hmean(0, 0, 0.0, 0)
      with self.assertRaises(AssertionError):
          compute_hmean(0, 0, 0, 0.0)
      with self.assertRaises(AssertionError):
          compute_hmean([1], 0, 0, 0)
      with self.assertRaises(AssertionError):
          compute_hmean(0, [1], 0, 0)
  
      _, _, hmean = compute_hmean(2, 2, 2, 2)
      self.assertEqual(hmean, 1)
  
      _, _, hmean = compute_hmean(0, 0, 2, 2)
      self.assertEqual(hmean, 0)
  
imports: from unittest import TestCase
  from mmocr.evaluation.functional import compute_hmean
label_desc: Use image node_id 1 for calling the TestHmean obj's underlying member method code with example usage: obj.test_compute_hmean() without return types