code: def app(load_model):
      current_path = os.getcwd()
      os.environ["MODEL_PATH"] = os.path.join(current_path, load_model)
      os.environ["MODEL_CLASS"] = "cornac.models.BPR"
  
      from cornac.serving.app import app
  
      app.config.update(
          {
              "TESTING": True,
          }
      )
  
      yield app
  
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 2 for calling a global function with example usage: app(load_model) without return types