code: def test_givenAIsGreaterThanBMaxMonitoring_thenReturnTrue(self):
      # We need to specify the metric for the mode to be properly set to "max"
      params = {"monitor_mode": "max", "monitor_metric": "loss"}
      self.setUpTwoExperiment(a_params=params, b_params=params)
  
      with patch.object(
          ModelBundle, "load_checkpoint"
      ) as load_checkpoint_mock:
          mocked_stats = MagicMock(spec=pd.DataFrame)
          series_mock = MagicMock(spec=pd.Series)
          series_mock.item.side_effect = [
              [2],
              [1],
          ]  # The monitored metric values
          mocked_stats.__getitem__.return_value = series_mock
          load_checkpoint_mock.return_value = mocked_stats
  
          self.assertTrue(
              self.test_experiment_a.is_better_than(
                  self.test_experiment_b
              )
          )
  
file_path: poutyne/tests/framework/experiment/test_is_better_than.py
imports: import os
  from tempfile import TemporaryDirectory
  from unittest import TestCase
  from unittest.mock import MagicMock, patch
  import pandas
  from torch import nn
  from poutyne import Experiment, ModelBundle
label_desc: Use image node_id 5 for calling the ExperimentIsBetterThanTest obj's underlying member method code with example usage: obj.test_givenAIsGreaterThanBMaxMonitoring_thenReturnTrue() without return types