code: def assert_splits_equal(actual, expected):
      """Asserts whether CV splits match expectation
      :param actual: np.array of np.arrays
      :param expected: np.array of np.arrays
      """
      actual = list(
          actual
      )  # A list of tuples of `np.array`: [(np.array:train, np.array:test), ...]
      for i in range(len(actual)):
          np.testing.assert_array_equal(actual[i][0], expected[i][0])
          np.testing.assert_array_equal(actual[i][1], expected[i][1])
  
file_path: greykite/greykite/tests/sklearn/test_cross_validation.py
imports: import numpy
  import pytest
  from greykite.sklearn.cross_validation import RollingTimeSeriesSplit
label_desc: Use image node_id 1 for calling a global function with example usage: assert_splits_equal(actual, expected) without return types