code: def test_repeat_index():
      arrays = [[1, 1, 2, 2], ["red", "blue", "red", "blue"]]
      psr = pd.MultiIndex.from_arrays(arrays, names=("number", "color"))
      gsr = cudf.from_pandas(psr)
      repeats = np.random.randint(10, size=4)
  
      assert_eq(psr.repeat(repeats), gsr.repeat(repeats))
  
imports: import cupy
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import Series
  from cudf.testing._utils import NUMERIC_TYPES, OTHER_TYPES, assert_eq
label_desc: Use image node_id 2 for calling a global function with example usage: test_repeat_index() without return types