code: def test_output_preprocess_y_when_y_index_is_RangeIndex():
      """
      Test values returned by when y is a pandas Series with RangeIndex
      """
      y = pd.Series(
          data=np.arange(3),
          index=pd.RangeIndex(start=0, stop=3, step=1),
      )
      results = preprocess_y(y)
      expected = (np.arange(3), pd.RangeIndex(start=0, stop=3, step=1))
  
      assert (results[0] == expected[0]).all()
      assert (results[1] == expected[1]).all()
  
file_path: skforecast/skforecast/utils/tests/test_preproces_y.py
imports: import pytest
  import numpy
  import pandas
  from skforecast.utils import preprocess_y
label_desc: Use image node_id 2 for calling a global function with example usage: test_output_preprocess_y_when_y_index_is_RangeIndex() without return types