code: def test_average(self) -> None:
      total = Stats(my_int_metric=9, my_float_metric=1.2, count=3)
      self.assertEqual(
          total.average(),
          Stats(
              my_int_metric=3,
              my_float_metric=0.39999999999999997,
              count=3,
          ),
      )
  
imports: from unittest import main, TestCase
  from torchbiggraph.stats import Stats
label_desc: Use image node_id 2 for calling the TestConfig obj's underlying member method code with example usage: obj.test_average() without return types