code: def test_early_stopping_with_max(self):
      earlystopper = EarlyStopping(
          monitor="val_dummy",
          mode="max",
          min_delta=0,
          patience=2,
          verbose=False,
      )
  
      dummy_metric_values = [2, 8, 4, 5, 2]
      early_stop_epoch = 4
      self._test_early_stopping(
          earlystopper, dummy_metric_values, early_stop_epoch
      )
  
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 5 for calling the EarlyStoppingTest obj's underlying member method code with example usage: obj.test_early_stopping_with_max() without return types