class_docstr: Compute Harmonic Mean
  The harmonic mean is a kind of mean. It can be expressed as the reciprocal of
  the arithmetic mean of the reciprocals of the given set of numbers.
  Note: `tfa.metrics.HarmonicMean` can be used the same as `tf.keras.metrics.Mean`.
  Args:
      name: (Optional) String name of the metric instance.
      dtype: (Optional) Data type of the metric result.
  Usage:
  >>> metric = tfa.metrics.HarmonicMean()
  >>> metric.update_state([1, 4, 4])
  >>> metric.result().numpy()
  2.0
code: def __init__(
      self,
      name: str = "harmonic_mean",
      dtype: AcceptableDTypes = None,
      **kwargs,
  ):
      super().__init__(name=name, dtype=dtype, **kwargs)
  
file_path: addons/tensorflow_addons/metrics/harmonic_mean.py
imports: import tensorflow
  from typeguard import typechecked
  from tensorflow_addons.utils.types import AcceptableDTypes
label_desc: Use image node_id 1 to create a new HarmonicMean object from inherited base classes: tf.keras.metrics with example: obj = HarmonicMean(name, dtype)