code: def setUp(self):
      super().setUp()
      torch.manual_seed(42)
      self.pytorch_network = DictOutputModel()
      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,
          lambda y_p, y_t: self.loss_function(y_p["out1"], y_t[0])
          + self.loss_function(y_p["out2"], y_t[1]),
          batch_metrics=self.batch_metrics,
          epoch_metrics=self.epoch_metrics,
      )
  
file_path: poutyne/tests/framework/model/test_dict_output.py
imports: import numpy
  import torch
  import torch.nn
  from poutyne import Model
  from tests.framework.model.base import ModelFittingTestCase
label_desc: Use image node_id 1 for calling the ModelDictOutputTest obj's underlying member method code with example usage: obj.setUp() without return types