code: def test_plot_series_with_unequal_index_type_raises_error(
      series_to_plot, valid_data_types
  ):
      """Tests whether plot_series raises error for series with unequal index."""
      match = "Found series with inconsistent index types"
      with pytest.raises(TypeError, match=match):
          _plot_series(series_to_plot)
  
imports: import re
  import numpy
  import pandas
  import pytest
  from sktime.datasets import load_airline
  from sktime.tests.test_switch import run_test_for_class
  from sktime.utils.plotting import plot_correlations, plot_lags, plot_series
  from sktime.utils.validation._dependencies import _check_soft_dependencies
  from sktime.utils.validation.series import VALID_DATA_TYPES
label_desc: Use image node_id 5 for calling a global function with example usage: test_plot_series_with_unequal_index_type_raises_error(series_to_plot, valid_data_types) without return types