code: def test_kvp_add_smaller():
      ks = np.empty(10, dtype=np.int32)
      vs = np.empty(10)
  
      # insert an item
      n = kvp_minheap_insert(0, 0, 10, 5, 3.0, ks, vs)
      n = kvp_minheap_insert(0, n, 10, 1, 1.0, ks, vs)
  
      # ep has moved
      assert n == 2
  
      # data is there
      assert all(ks[:2] == [1, 5])
      assert all(vs[:2] == [1.0, 3.0])
  
file_path: lkpy/tests/test_util_accum.py
imports: import numpy
  from lenskit.util.accum import kvp_minheap_insert, kvp_minheap_sort
  from hypothesis import given, assume, settings
  import hypothesis.strategies
  import hypothesis.extra.numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_kvp_add_smaller() without return types