code: def test_get_writer_oserror_eexist(self, mockdirs, isdir, _, __):
      from torchbearer.callbacks.tensor_board import get_writer
      import sys
      import errno
  
      class MyError(OSError):
          def __init__(self):
              self.errno = errno.EEXIST
  
      isdir.return_value = True
      mockdirs.side_effect = MyError
  
      get_writer("test", "nothing", visdom=True)
      if sys.version_info[0] >= 3:
          mockdirs.assert_called_once_with("test", exist_ok=True)
      else:
          mockdirs.assert_called_once_with("test")
  
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 9 for calling the TestTensorBoard obj's underlying member method code with example usage: obj.test_get_writer_oserror_eexist(mockdirs, isdir, _, __) without return types