code: def rank_zero_critical(
      *args: Any, logger: Optional[logging.Logger] = None, **kwargs: Any
  ) -> None:
      """Log critical message only from rank 0."""
      if get_global_rank() != 0:
          return
      logger = logger or _LOGGER
      if _supports_stacklevel():
          kwargs["stacklevel"] = 2
      logger.critical(*args, **kwargs)
  
file_path: tnt/torchtnt/utils/rank_zero_log.py
imports: import logging
  from typing import Any, Optional
  from packaging.version import Version
  from torchtnt.utils.distributed import get_global_rank
  from torchtnt.utils.version import get_python_version
label_desc: Use image node_id 6 for calling a global function with example usage: rank_zero_critical() without return types