code: def _test_callbacks_test(self, params):
      call_list = self._get_callback_expected_on_calls_when_testing(
          params
      )
  
      method_calls = self.mock_callback.method_calls
      self.assertEqual(
          call.set_model(self.model), method_calls[0]
      )  # skip set_model and set param call
      self.assertEqual(call.set_params(params), method_calls[1])
  
      self.assertEqual(
          len(method_calls), len(call_list) + 2
      )  # for set_model and set param
      self.assertEqual(method_calls[2:], call_list)
  
imports: import os
  from unittest.mock import ANY, MagicMock, call
  import numpy
  import torch
  import torch.nn
  from poutyne import Callback
  from tests.framework.base import CaptureOutputBase
label_desc: Use image node_id 5 for calling the ModelFittingTestCase obj's underlying member method code with example usage: obj._test_callbacks_test(params) without return types