code: def log_summary():
      global cdb
      barrier(log_name="log_summary_barrier")
      if cdb.get_rank() == 0:
          comms_logger.log_all()
      barrier(log_name="log_summary_barrier")
  
imports: from enum import Enum
  import torch
  import os
  from ..constants import TORCH_DISTRIBUTED_DEFAULT_PORT, default_pg_timeout
  from .constants import *
  from deepspeed.utils.comms_logging import CommsLogger
  from deepspeed.utils import timer, get_caller_func
  from deepspeed.comm.torch import TorchBackend
  from deepspeed import utils
  from datetime import timedelta
  from deepspeed.comm.utils import *
label_desc: Use image node_id 27 for calling a global function with example usage: log_summary() without return types