code: def test_hit_long_items():
      rel = np.arange(100)
      items = [1, 0, 150, 3, 10, 30, 120, 4, 17]
      items = np.array(items)
  
      r = _test_hit(items, rel, k=5)
      assert r == 1
  
      items += 200
      items[5] = 5
  
      r = _test_hit(np.array(items) + 200, rel, k=5)
      assert r == 0
  
file_path: lkpy/tests/test_topn_hit.py
imports: import logging
  import numpy
  import pandas
  from pytest import approx
  from lenskit.metrics.topn import hit
  from lenskit.util.test import demo_recs
  from lenskit import topn
label_desc: Use image node_id 10 for calling a global function with example usage: test_hit_long_items() without return types