code: def test_missing_indices():
      """Tests setup when data has missing indices"""
  
      data = pd.read_csv(
          "https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv"
      )
      data["ds"] = pd.to_datetime(data["ds"])
      data.set_index("ds", inplace=True)
      data.index = data.index.to_period("D")
      data.info()
  
      exp = TSForecastingExperiment()
  
      with pytest.raises(ValueError) as errmsg:
          exp.setup(data=data, fh=365, session_id=42)
      exceptionmsg = errmsg.value.args[0]
  
      assert "Data has missing indices!" in exceptionmsg
  
imports: import math
  import numpy
  import pandas
  import pytest
  from time_series_test_utils import _get_seasonal_values, _get_seasonal_values_alphanumeric, _return_data_seasonal_types_strictly_pos, _return_setup_args_raises, _return_splitter_args
  from pycaret.datasets import get_data
  from pycaret.time_series import TSForecastingExperiment
label_desc: Use image node_id 15 for calling a global function with example usage: test_missing_indices() without return types