code: def test_hit_series():
      hr = _test_hit(pd.Series([1, 3]), pd.Series([1, 3]))
      assert hr == 1
  
      hr = _test_hit(pd.Series([1, 2, 3]), pd.Series([1, 3, 5, 7]))
      assert hr == 1
  
      hr = _test_hit(pd.Series([1, 2, 3]), pd.Series([5, 7]))
      assert hr == 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 5 for calling a global function with example usage: test_hit_series() without return types