code: def test_save_best_only_with_max(self):
      model_restore = BestModelRestore(monitor="val_loss", mode="max")
  
      val_losses = [3, 2, 8, 5, 4]
      best_epoch = 3
      self._test_restore_with_val_losses(
          model_restore, val_losses, best_epoch
      )
  
file_path: poutyne/tests/framework/callbacks/test_best_model_restore.py
imports: import unittest
  from unittest import TestCase
  import torch
  import torch.nn
  from poutyne import BestModelRestore, Model, torch_to_numpy
  from tests.framework.tools import some_data_generator
label_desc: Use image node_id 4 for calling the BestModelRestoreTest obj's underlying member method code with example usage: obj.test_save_best_only_with_max() without return types