code: def test_ksubsets():
      assert list(ksubsets([1, 2, 3], 2)) == [(1, 2), (1, 3), (2, 3)]
      assert list(ksubsets([1, 2, 3, 4, 5], 2)) == [
          (1, 2),
          (1, 3),
          (1, 4),
          (1, 5),
          (2, 3),
          (2, 4),
          (2, 5),
          (3, 4),
          (3, 5),
          (4, 5),
      ]
  
imports: from sympy.combinatorics.subsets import Subset, ksubsets
  from sympy.testing.pytest import raises
label_desc: Use image node_id 2 for calling a global function with example usage: test_ksubsets() without return types