code: def load_model():
      triplet_data = Reader().read("tests/data.txt")
      train_set = Dataset.from_uir(triplet_data)
      model = BPR(
          k=10,
          max_iter=100,
          learning_rate=0.01,
          lambda_reg=0.01,
          seed=123,
      )
      model.fit(train_set)
      return model.save(save_dir="saved_models", save_trainset=True)
  
file_path: cornac/tests/cornac/serving/test_app.py
imports: import os
  import pytest
  from cornac.data import Reader, Dataset
  from cornac.models import BPR
label_desc: Use image node_id 1 for calling a global function with example usage: load_model() and returns: model