code: def test_init_states_gmean():
      obj = GeometricMean()
      assert obj.total.numpy() == 0.0
      assert obj.count.numpy() == 0.0
      assert obj.total.dtype == tf.float32
      assert obj.count.dtype == tf.float32
  
file_path: addons/tensorflow_addons/metrics/tests/geometric_mean_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.metrics import GeometricMean
label_desc: Use image node_id 5 for calling a global function with example usage: test_init_states_gmean() without return types