code: def check_result(obj, expected_result, expected_count):
      result = obj.result().numpy()
      count = obj.count.numpy()
      assert_result(expected_result, result)
      np.testing.assert_equal(expected_count, count)
  
file_path: addons/tensorflow_addons/metrics/tests/harmonic_mean_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.metrics import HarmonicMean
label_desc: Use image node_id 3 for calling a global function with example usage: check_result(obj, expected_result, expected_count) without return types