code: def test_ActivityStats_comparisons():
      stats1 = ActivityStats()
      stats2 = ActivityStats()
      assert_equal(stats1, stats2)
      stats1.files += 1
      assert_not_equal(stats1, stats2)
  
      # if we reset -- should get back the same although totals should be different
      stats1.reset()
      assert_equal(stats1.as_str(), stats2.as_str())
      assert_equal(stats1, stats2)
      assert_not_equal(stats1.get_total(), stats2.get_total())
  
imports: from ...tests.utils_pytest import assert_equal, assert_in, assert_not_equal, assert_raises
  from ..stats import _COUNTS, ActivityStats
label_desc: Use image node_id 2 for calling a global function with example usage: test_ActivityStats_comparisons() without return types