code: def test_pairwise():
      i = pairwise([0, 1, 2, 3, 4])
      assert next(i) == (0, 1)
      assert next(i) == (1, 2)
      assert next(i) == (2, 3)
      assert next(i) == (3, 4)
      with pytest.raises(StopIteration):
          next(i)
  
imports: import pytest
  from bplustree.utils import pairwise, iter_slice
label_desc: Use image node_id 1 for calling a global function with example usage: test_pairwise() without return types