code: def test_leave_k_out_raises_error_for_invalid_train_only_size_upper_bound():
      """
      Test that an error is raised when train_only_size >= 1.
      """
      with pytest.raises(ValueError):
          leave_k_out_split(None, K=1, train_only_size=1.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 10 for calling a global function with example usage: test_leave_k_out_raises_error_for_invalid_train_only_size_upper_bound() without return types