code: def test_rank_zero_fn_rank_zero(self) -> None:
      logger = MagicMock()
      supports_stacklevel = _supports_stacklevel()
  
      rank_zero_debug("foo", logger=logger)
      if supports_stacklevel:
          logger.debug.assert_called_once_with("foo", stacklevel=2)
      else:
          logger.debug.assert_called_once_with("foo")
  
      rank_zero_info("foo", logger=logger)
      if supports_stacklevel:
          logger.info.assert_called_once_with("foo", stacklevel=2)
      else:
          logger.info.assert_called_once_with("foo")
  
      rank_zero_warn("foo", logger=logger)
      if supports_stacklevel:
          logger.warning.assert_called_once_with("foo", stacklevel=2)
      else:
          logger.warning.assert_called_once_with("foo")
  
      rank_zero_error("foo", logger=logger)
      if supports_stacklevel:
          logger.error.assert_called_once_with("foo", stacklevel=2)
      else:
          logger.error.assert_called_once_with("foo")
  
      rank_zero_critical("foo", logger=logger)
      if supports_stacklevel:
          logger.critical.assert_called_once_with("foo", stacklevel=2)
      else:
          logger.critical.assert_called_once_with("foo")
  
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 1 for calling the RankZeroLogTest obj's underlying member method code with example usage: obj.test_rank_zero_fn_rank_zero() without return types