code: def test_sgd_n_epoch_field(u1_ml100k, pkf):
      """Ensure the n_epoch field is taken into account."""
  
      bsl_options = {
          "method": "sgd",
          "n_epochs": 1,
      }
      algo = BaselineOnly(bsl_options=bsl_options)
      rmse_sgd_n_epoch_1 = cross_validate(
          algo, u1_ml100k, ["rmse"], pkf
      )["test_rmse"]
  
      bsl_options = {
          "method": "sgd",
          "n_epochs": 20,
      }
      algo = BaselineOnly(bsl_options=bsl_options)
      rmse_sgd_n_epoch_5 = cross_validate(
          algo, u1_ml100k, ["rmse"], pkf
      )["test_rmse"]
  
      assert rmse_sgd_n_epoch_1 != rmse_sgd_n_epoch_5
  
file_path: Surprise/tests/test_bsl_options.py
imports: import pytest
  from surprise import BaselineOnly
  from surprise.model_selection import cross_validate
label_desc: Use image node_id 5 for calling a global function with example usage: test_sgd_n_epoch_field(u1_ml100k, pkf) without return types