code: def testParse(self):
      stat = stopwatch.Stat()
      stat.add(1)
      stat.add(3)
      out = str(stat)
      self.assertEqual(
          out,
          "sum: 4.0000, avg: 2.0000, dev: 1.0000, "
          "min: 1.0000, max: 3.0000, num: 2",
      )
      # Allow a few small rounding errors
      self.assertLess(ham_dist(out, str(stopwatch.Stat.parse(out))), 5)
  
file_path: pysc2/pysc2/lib/stopwatch_test.py
imports: import os
  from absl.testing import absltest
  import mock
  from pysc2.lib import stopwatch
label_desc: Use image node_id 2 for calling the StatTest obj's underlying member method code with example usage: obj.testParse() without return types