code: def test_config_gmean():
      def _check_config(obj, name):
          assert obj.name == name
          assert obj.dtype == tf.float32
          assert obj.stateful
          assert len(obj.variables) == 2
  
      name = "my_gmean"
      obj1 = GeometricMean(name=name)
      _check_config(obj1, name)
  
      obj2 = GeometricMean.from_config(obj1.get_config())
      _check_config(obj2, name)
  
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 4 for calling a global function with example usage: test_config_gmean() without return types