code: def test_recommend(client):
      response = client.get("/recommend?uid=930&k=5")
      assert response.status_code == 200
      assert len(response.json["recommendations"]) == 5
      assert response.json["query"]["uid"] == "930"
      assert response.json["query"]["k"] == 5
      assert response.json["query"]["remove_seen"] == False
  
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 6 for calling a global function with example usage: test_recommend(client) without return types