code: def test_shared_counts(self):
      # Two counters with shared parent should share counts (modulo namespacing).
      parent = counting.Counter()
      child1 = counting.Counter(parent, "child1")
      child2 = counting.Counter(parent, "child2")
      child1.increment(foo=1)
      result = child2.increment(foo=2)
      expected = {"child1_foo": 1, "child2_foo": 2}
      self.assertEqual(result, expected)
  
file_path: acme/acme/utils/counting_test.py
imports: import threading
  from acme.utils import counting
  from absl.testing import absltest
label_desc: Use image node_id 3 for calling the CountingTest obj's underlying member method code with example usage: obj.test_shared_counts() without return types