code: def test_leave_k_out_raises_error_for_k_less_than_zero():
      """
      Test that an error is raised when K < 0.
      """
      with pytest.raises(ValueError):
          leave_k_out_split(None, K=0)
  
file_path: implicit/tests/evaluation_test.py
imports: import numpy
  import pytest
  from scipy.sparse import csr_matrix, random
  import implicit
  from implicit.evaluation import leave_k_out_split, precision_at_k, train_test_split
  from implicit.datasets.movielens import get_movielens
label_desc: Use image node_id 8 for calling a global function with example usage: test_leave_k_out_raises_error_for_k_less_than_zero() without return types