code: def test_log_rank_zero(self: TensorBoardLoggerTest) -> None:
      with tempfile.TemporaryDirectory() as log_dir:
          with patch.dict("os.environ", {"RANK": "1"}):
              logger = TensorBoardLogger(path=log_dir)
              self.assertEqual(logger.writer, None)
  
file_path: tnt/tests/utils/loggers/test_tensorboard.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  from unittest.mock import Mock, patch
  import torch.distributed.launcher
  from tensorboard.backend.event_processing.event_accumulator import EventAccumulator
  from torch import distributed
  from torchtnt.utils.loggers.tensorboard import TensorBoardLogger
  from torchtnt.utils.test_utils import get_pet_launch_config
label_desc: Use image node_id 4 for calling the TensorBoardLoggerTest obj's underlying member method code with example usage: obj.test_log_rank_zero() without return types