code: def __init__(self):
      from deepspeed.comm.constants import (
          COMMS_LOGGER_VERBOSE_DEFAULT,
          COMMS_LOGGER_DEBUG_DEFAULT,
          COMMS_LOGGER_PROF_OPS_DEFAULT,
          COMMS_LOGGER_PROF_ALL_DEFAULT,
          COMMS_LOGGER_ENABLED_DEFAULT,
      )
  
      self.comms_dict = {}
      self.verbose = COMMS_LOGGER_VERBOSE_DEFAULT
      self.debug = COMMS_LOGGER_DEBUG_DEFAULT
      self.prof_ops = COMMS_LOGGER_PROF_OPS_DEFAULT
      self.prof_all = COMMS_LOGGER_PROF_ALL_DEFAULT
      self.enabled = COMMS_LOGGER_ENABLED_DEFAULT
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/utils/comms_logging.py
imports: import math
  from deepspeed.utils import log_dist
label_desc: Use image node_id 1 to create a new CommsLogger object  with example: obj = CommsLogger()