code: def _test_recall(items, rel, **kwargs):
      recs = pd.DataFrame({"item": items})
      truth = pd.DataFrame({"item": rel}).set_index("item")
      return recall(recs, truth, **kwargs)
  
file_path: lkpy/tests/test_topn_recall.py
imports: import logging
  import numpy
  import pandas
  from pytest import approx
  from lenskit.metrics.topn import recall
  from lenskit.util.test import demo_recs
  from lenskit import topn
label_desc: Use image node_id 1 for calling a global function with example usage: _test_recall(items, rel) and returns: recall