code: def setUp(self):
      torch.manual_seed(42)
      self.pytorch_network = nn.Linear(1, 1)
      self.loss_function = nn.MSELoss()
      self.optimizer = torch.optim.SGD(
          self.pytorch_network.parameters(), lr=1e-3
      )
  
imports: import unittest
  import torch
  import torch.nn
  from poutyne import Callback, EarlyStopping, Metric, Model
  from tests.framework.base import CaptureOutputBase
  from tests.framework.tools import some_data_generator
label_desc: Use image node_id 1 for calling the EarlyStoppingTest obj's underlying member method code with example usage: obj.setUp() without return types