code: def test_mode_not_min_max_raise_error(self):
      with self.assertRaises(ValueError):
          BestModelRestore(monitor="val_loss", mode="invalid_mode")
  
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 5 for calling the BestModelRestoreTest obj's underlying member method code with example usage: obj.test_mode_not_min_max_raise_error() without return types