code: def log_summary(show_straggler=False):
      global cdb
      barrier(log_name="log_summary_barrier")
      if cdb.get_rank() == 0:
          comms_logger.log_all(
              print_log=True, show_straggler=show_straggler
          )
      else:
          comms_logger.log_all(
              print_log=False, show_straggler=show_straggler
          )
      barrier(log_name="log_summary_barrier")
  
imports: import torch
  import os
  from ..constants import TORCH_DISTRIBUTED_DEFAULT_PORT, default_pg_timeout
  from .constants import *
  from .reduce_op import *
  from deepspeed.accelerator import get_accelerator
  from deepspeed.comm.ccl import CCLBackend
  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 28 for calling a global function with example usage: log_summary(show_straggler) without return types