code: def test_batch_log_dir_visdom(self, mock_visdom, mock_writer, _):
      state = {
          torchbearer.MODEL: nn.Sequential(nn.Conv2d(3, 3, 3)),
          torchbearer.EPOCH: 0,
          torchbearer.METRICS: {"test": 1},
          torchbearer.BATCH: 0,
      }
  
      tboard = TensorBoard(
          visdom=True,
          write_batch_metrics=True,
          write_graph=False,
          write_epoch_metrics=False,
      )
      tboard.on_start(state)
      tboard.on_start_epoch(state)
      tboard.on_end_epoch(state)
      tboard.on_end(state)
  
      self.assertTrue(
          mock_visdom.call_args[1]["log_to_filename"]
          == os.path.join(
              "./logs", "Sequential_torchbearer", "epoch", "log.log"
          )
      )
  
imports: import os
  from unittest import TestCase
  import warnings
  import torch
  import torch.nn
  from mock import patch, Mock, ANY, MagicMock
  import torchbearer
  from torchbearer.callbacks import TensorBoard, TensorBoardImages, TensorBoardProjector, TensorBoardText
label_desc: Use image node_id 13 for calling the TestTensorBoard obj's underlying member method code with example usage: obj.test_batch_log_dir_visdom(mock_visdom, mock_writer, _) without return types