code: def test_add_scalars_call_is_correctly_passed_to_summary_writer(
      self: TensorBoardLoggerTest,
  ) -> None:
      with patch(
          "torchtnt.utils.loggers.tensorboard.SummaryWriter"
      ) as mock_summary_writer_class:
          mock_summary_writer = Mock()
          mock_summary_writer_class.return_value = mock_summary_writer
          logger = TensorBoardLogger(path="/tmp")
          logger.log_scalars(
              "tnt_metrics",
              {
                  "x": 0,
                  "y": 1,
              },
              1,
              2,
          )
          mock_summary_writer.add_scalars.assert_called_with(
              main_tag="tnt_metrics",
              tag_scalar_dict={
                  "x": 0,
                  "y": 1,
              },
              global_step=1,
              walltime=2,
          )
  
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 7 for calling the TensorBoardLoggerTest obj's underlying member method code with example usage: obj.test_add_scalars_call_is_correctly_passed_to_summary_writer() without return types