code: def log_args(logger, args):
      logger.info("--------args----------")
      message = "\n".join(
          [f"{k:<30}: {v}" for k, v in vars(args).items()]
      )
      message += "\n"
      message += "\n".join(
          [f"{k:<30}: {v}" for k, v in gpc.config.items()]
      )
      logger.info(message)
      logger.info("--------args----------\n")
  
file_path: ColossalAI/examples/community/roberta/pretraining/utils/exp_util.py
imports: import functools
  import os
  import shutil
  import psutil
  import torch
  from colossalai.legacy.core import global_context
label_desc: Use image node_id 11 for calling a global function with example usage: log_args(logger, args) without return types