code: def log_metrics(logger, epoch, elapsed, tag, metrics):
      metrics_output = "\n".join(
          [f"\t{k}: {v}" for k, v in metrics.items()]
      )
      logger.info(
          f"\nEpoch {epoch} - Evaluation time (seconds): {elapsed:.2f} - {tag} metrics:\n {metrics_output}"
      )
  
file_path: ignite/examples/references/classification/imagenet/utils.py
imports: import torch
  import ignite
  import ignite.distributed
  from ignite.handlers import DiskSaver
label_desc: Use image node_id 3 for calling a global function with example usage: log_metrics(logger, epoch, elapsed, tag, metrics) without return types