code: def test_states_index_rangeindex():
      nobs = 10
  
      # Basic range index
      ix = pd.RangeIndex(10)
      endog = pd.Series(np.zeros(nobs), index=ix)
  
      mod = sarimax.SARIMAX(endog, order=(2, 0, 0))
      res = mod.smooth([0.5, 0.1, 1.0])
  
      predicted_ix = pd.RangeIndex(11)
      cols = pd.Index(["state.0", "state.1"])
  
      check_states_index(res.states, ix, predicted_ix, cols)
  
      # More complex range index
      ix = pd.RangeIndex(2, 32, 3)
      endog = pd.Series(np.zeros(nobs), index=ix)
  
      mod = sarimax.SARIMAX(endog, order=(2, 0, 0))
      res = mod.smooth([0.5, 0.1, 1.0])
  
      predicted_ix = pd.RangeIndex(2, 35, 3)
      cols = pd.Index(["state.0", "state.1"])
  
      check_states_index(res.states, ix, predicted_ix, cols)
  
imports: from statsmodels.compat.pandas import MONTH_END
  import os
  import re
  import warnings
  import numpy
  from numpy.testing import assert_, assert_allclose, assert_almost_equal, assert_equal, assert_raises
  import pandas
  import pytest
  from statsmodels.datasets import nile
  from statsmodels.tsa.statespace import kalman_filter, kalman_smoother, sarimax, varmax
  from statsmodels.tsa.statespace.mlemodel import MLEModel, MLEResultsWrapper
  from statsmodels.tsa.statespace.tests.results import results_sarimax, results_var_misc
label_desc: Use image node_id 34 for calling a global function with example usage: test_states_index_rangeindex() without return types