code: def test_get_index_loc_quarterly():
      # See GH#6339
  
      ix = pd.date_range("2000Q1", periods=8, freq="QS")
      endog = pd.Series(np.zeros(8), index=ix)
  
      mod = tsa_model.TimeSeriesModel(endog)
      loc, index, _ = mod._get_index_loc("2003Q2")
      assert_equal(index[loc], pd.Timestamp("2003Q2"))
  
imports: from statsmodels.compat.pandas import PD_LT_2_2_0, YEAR_END, is_int_index
  import warnings
  import numpy
  from numpy.testing import assert_equal, assert_raises
  import pandas
  import pytest
  from statsmodels.tools.sm_exceptions import ValueWarning
  from statsmodels.tsa.base import tsa_model
label_desc: Use image node_id 14 for calling a global function with example usage: test_get_index_loc_quarterly() without return types