code: def test_kvp_insert_min():
      ks = np.full(10, -1, dtype=np.int32)
      vs = np.zeros(10)
  
      n = 0
  
      # something less than existing data
      n = kvp_minheap_insert(0, n, 10, 5, -3.0, ks, vs)
      assert n == 1
      assert ks[0] == 5
      assert vs[0] == -3.0
  
      # equal to existing data
      n = kvp_minheap_insert(0, 0, 10, 7, -3.0, ks, vs)
      assert n == 1
      assert ks[0] == 7
      assert vs[0] == -3.0
  
      # greater than to existing data
      n = kvp_minheap_insert(0, 0, 10, 9, 5.0, ks, vs)
      assert n == 1
      assert ks[0] == 9
      assert vs[0] == 5.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 6 for calling a global function with example usage: test_kvp_insert_min() without return types