code: def test_sample_weight_hmean(values, sample_weight, expected):
      obj = HarmonicMean()
      obj.update_state(values, sample_weight=sample_weight)
      assert_result(expected, obj.result().numpy())
  
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 6 for calling a global function with example usage: test_sample_weight_hmean(values, sample_weight, expected) without return types