code: def test_log_summary(self, mock_board, _):
      mock_board.return_value = Mock()
      mock_board.return_value.add_text = Mock()
      mock_self = "test"
  
      state = {
          torchbearer.MODEL: nn.Sequential(nn.Conv2d(3, 3, 3)),
          torchbearer.EPOCH: 0,
          torchbearer.METRICS: {"test": 1},
          torchbearer.BATCH: 0,
          torchbearer.SELF: mock_self,
      }
      tboard = TensorBoardText(
          write_batch_metrics=False,
          write_epoch_metrics=False,
          log_trial_summary=True,
      )
      tboard.on_start(state)
      self.assertEqual(
          mock_board.return_value.add_text.call_args[0][0], "trial"
      )
      self.assertEqual(
          mock_board.return_value.add_text.call_args[0][1],
          str(mock_self),
      )
  
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 TestTensorbardText obj's underlying member method code with example usage: obj.test_log_summary(mock_board, _) without return types