code: def assert_result(expected, result):
      np.testing.assert_allclose(expected, result, atol=1e-6)
  
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 2 for calling a global function with example usage: assert_result(expected, result) without return types