code: def check_folds(Xs, ys, cv):
      idj = []
      for i in range(len(cv)):
          assert len(Xs[cv[i][0]]) == len(ys[cv[i][0]])
          assert len(Xs[cv[i][1]]) == len(ys[cv[i][1]])
          idi = np.concatenate((cv[i][0], cv[i][1]))
          assert np.array_equal(
              np.sort(idi), np.arange(len(idi))
          )  # checks each value in fold
          idj.append(cv[i][1])
      idj = np.concatenate(idj)
      assert np.array_equal(np.sort(idj), np.arange(len(idj)))
  
file_path: seglearn/seglearn/tests/test_split.py
imports: from numpy.random import rand
  import numpy
  from seglearn.split import TemporalKFold, temporal_split
  from seglearn.base import TS_Data
label_desc: Use image node_id 6 for calling a global function with example usage: check_folds(Xs, ys, cv) without return types