code: def test_lambda_train_calls(self):
      (
          lambda_callback,
          mock_calls,
      ) = self._get_lambda_callback_with_mock_args()
      train_generator = some_data_tensor_generator(
          LambdaTest.batch_size
      )
      valid_generator = some_data_tensor_generator(
          LambdaTest.batch_size
      )
      self.model.fit_generator(
          train_generator,
          valid_generator,
          epochs=LambdaTest.epochs,
          steps_per_epoch=LambdaTest.steps_per_epoch,
          validation_steps=LambdaTest.steps_per_epoch,
          callbacks=[lambda_callback, self.mock_callback],
      )
  
      expected_calls = self.mock_callback.method_calls[2:]
      actual_calls = mock_calls.method_calls
      self.assertEqual(len(expected_calls), len(actual_calls))
      self.assertEqual(expected_calls, actual_calls)
  
file_path: poutyne/tests/framework/callbacks/test_lambda.py
imports: from unittest.mock import Mock, call
  import torch
  import torch.nn
  from poutyne import Callback, LambdaCallback, Model
  from tests.framework.model.base import ModelFittingTestCase
  from tests.framework.tools import some_data_tensor_generator
label_desc: Use image node_id 5 for calling the LambdaTest obj's underlying member method code with example usage: obj.test_lambda_train_calls() without return types