code: def setUp(self):
      torch.manual_seed(42)
      self.loss_function = nn.MSELoss()
      self.temp_dir_obj = TemporaryDirectory()
      # pylint: disable=not-callable
      self.writer = SummaryWriter(self.temp_dir_obj.name)
      self.writer.add_scalars = MagicMock()
  
imports: import math
  from tempfile import TemporaryDirectory
  from unittest import TestCase, skipIf
  from unittest.mock import ANY, MagicMock, call
  import torch
  import torch.nn
  from tests.framework.tools import some_data_generator
  from poutyne import GradientTracker, Model, TensorBoardGradientTracker, WeightsGradientsStatsTracker
label_desc: Use image node_id 1 for calling the TensorBoardGradientTrackerTest obj's underlying member method code with example usage: obj.setUp() without return types