code: def test_RepeatedCV(toy_data):
      # test n_splits and n_repeats parameters
      rkf = RepeatedKFold(n_splits=3, n_repeats=2)
      assert len(list(rkf.split(toy_data))) == 3 * 2
      rkf = RepeatedKFold(n_splits=3, n_repeats=4)
      assert len(list(rkf.split(toy_data))) == 3 * 4
      rkf = RepeatedKFold(n_splits=4, n_repeats=3)
      assert len(list(rkf.split(toy_data))) == 4 * 3
  
      # Make sure folds different between 2 repetitions (even if
      # random_state is set, random_state controls the whole sequence)
      rkf = RepeatedKFold(n_splits=3, n_repeats=2, random_state=3)
      testsets = list(testset for (_, testset) in rkf.split(toy_data))
      for i in range(3):
          assert testsets[i] != testsets[i + 3]
  
      # Make sure folds are same when same cv iterator is called on same data (if
      # random_state is set)
      rkf = RepeatedKFold(n_splits=3, n_repeats=2, random_state=3)
      testsets_a = list(testset for (_, testset) in rkf.split(toy_data))
      testsets_b = list(testset for (_, testset) in rkf.split(toy_data))
      assert testsets_a == testsets_b
  
      # Make sure folds are different when random_state is None
      rkf = RepeatedKFold(n_splits=3, n_repeats=2, random_state=None)
      testsets_a = list(testset for (_, testset) in rkf.split(toy_data))
      testsets_b = list(testset for (_, testset) in rkf.split(toy_data))
      assert testsets_a != testsets_b
  
file_path: Surprise/tests/test_split.py
imports: import os
  from collections import Counter
  from copy import copy
  import numpy
  import pytest
  from surprise import Dataset, Reader
  from surprise.model_selection import KFold, LeaveOneOut, PredefinedKFold, RepeatedKFold, ShuffleSplit, train_test_split
  from surprise.model_selection.split import get_cv
label_desc: Use image node_id 4 for calling a global function with example usage: test_RepeatedCV(toy_data) without return types