code: def index(request):
      param = request.param
      if param in ("period", "datetime"):
          idx = pd.date_range("2000-01-01", periods=137, freq=MONTH_END)
          if param == "period":
              idx = idx.to_period("M")
      elif param == "range":
          idx = pd.RangeIndex(0, 123)
      elif param == "int64":
          idx = pd.Index(np.arange(123))
      elif param == "fib":
          fib = [0, 1]
          for _ in range(113):
              fib.append(fib[-2] + fib[-1])
          idx = pd.Index(fib)
      else:
          raise NotImplementedError()
      return idx
  
imports: from statsmodels.compat.pandas import MONTH_END, PD_LT_1_0_0, QUARTER_END, YEAR_END, is_int_index
  from statsmodels.compat.pytest import pytest_warns
  from collections.abc import Hashable
  import numpy
  import pandas
  import pytest
  from statsmodels.tsa.deterministic import CalendarFourier, CalendarSeasonality, CalendarTimeTrend, DeterministicProcess, DeterministicTerm, Fourier, Seasonality, TimeTrend
label_desc: Use image node_id 2 for calling a global function with example usage: index(request) and returns: idx