code: def test_plot_series_uniform_treatment_of_int64_range_index_types():
      """Verify that plot_series treats Int64 and Range indices equally."""
      # We test that int64 and range indices are treated uniformly and do not raise an
      # error of inconsistent index types
      _check_soft_dependencies("matplotlib")
      import matplotlib
      import matplotlib.pyplot as plt
  
      matplotlib.use("agg")
  
      y1 = pd.Series(np.arange(10))
      y2 = pd.Series(np.random.normal(size=10))
      y1.index = pd.Index(y1.index, dtype=int)
      y2.index = pd.RangeIndex(y2.index)
      plot_series(y1, y2)
      plt.gcf().canvas.draw_idle()
      plt.close()
  
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 9 for calling a global function with example usage: test_plot_series_uniform_treatment_of_int64_range_index_types() without return types