code: def put_metric(self, key, value, count=True):
      self._metrics[key] += value
      if count:
          count_key = "{}_count".format(key)
          self._metrics[count_key] += 1
  
imports: import logging
  import threading
  import atexit
  import time
  import collections
  import traceback
  from abc import ABCMeta, abstractmethod
label_desc: Use image node_id 4 for calling the Metrics obj's underlying member method code with example usage: obj.put_metric(key, value, count) without return types