code: def test_hit_simple_cases():
      hr = _test_hit([1, 3], [1, 3])
      assert hr == 1
  
      hr = _test_hit([1], [1, 3])
      assert hr == 1
  
      hr = _test_hit([1, 2, 3, 4], [1, 3])
      assert hr == 1
  
      hr = _test_hit([1, 2, 3, 4], range(5, 10))
      assert hr == 0
  
      hr = _test_hit([1, 2, 3, 4], range(4, 9))
      assert hr == 1
  
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 4 for calling a global function with example usage: test_hit_simple_cases() without return types