code: def setUp(self):
      torch.manual_seed(42)
      self.pytorch_network = nn.Sequential(
          nn.Linear(1, 2), nn.Linear(2, 1)
      )
      self.loss_function = nn.MSELoss()
      self.optimizer = torch.optim.SGD(
          self.pytorch_network.parameters(), lr=1e-3
      )
      self.model = Model(
          self.pytorch_network, self.optimizer, self.loss_function
      )
      self.temp_dir_obj = TemporaryDirectory()
      self.csv_filename = os.path.join(
          self.temp_dir_obj.name, "layer_{}.csv"
      )
  
imports: import csv
  import os
  from tempfile import TemporaryDirectory
  from unittest import TestCase
  from unittest.mock import MagicMock
  import torch
  import torch.nn
  from poutyne import AtomicCSVGradientLogger
  from poutyne import CSVGradientLogger
  from poutyne import GradientLoggerBase, MemoryGradientLogger, Model, TensorBoardGradientLogger
  from tests.framework.tools import some_data_generator
label_desc: Use image node_id 1 for calling the BaseGradientLoggerTest obj's underlying member method code with example usage: obj.setUp() without return types