code: def test_rank_zero_fn_rank_non_zero(self) -> None:
      logger = MagicMock()
  
      rank_zero_debug("foo", logger=logger)
      logger.debug.assert_not_called()
  
      rank_zero_info("foo", logger=logger)
      logger.info.assert_not_called()
  
      rank_zero_warn("foo", logger=logger)
      logger.warning.assert_not_called()
  
      rank_zero_error("foo", logger=logger)
      logger.error.assert_not_called()
  
      rank_zero_critical("foo", logger=logger)
      logger.critical.assert_not_called()
  
imports: import unittest
  from unittest.mock import MagicMock, patch
  from torchtnt.utils.rank_zero_log import _supports_stacklevel, rank_zero_critical, rank_zero_debug, rank_zero_error, rank_zero_info, rank_zero_warn
label_desc: Use image node_id 2 for calling the RankZeroLogTest obj's underlying member method code with example usage: obj.test_rank_zero_fn_rank_non_zero() without return types