class_docstr: Tests `get_shared_times` function defined in `darts.utils.data.tabularization`.
class_docstr_tok: ["Tests","`","get_shared_times","`","function","defined","in","`","darts.utils.data.tabularization","`","."]
docstr: Tests that `get_shared_times` throws correct error when
  provided with series with different types of time indices.
docstr_tok: ["Tests","that","`","get_shared_times","`","throws","correct","error","when","provided","with","series","with","different","types","of","time","indices","."]
code: def test_shared_times_different_time_index_types_error(self):
      """
      Tests that `get_shared_times` throws correct error when
      provided with series with different types of time indices.
      """
      series_1 = linear_timeseries(start=1, length=5, freq=1)
      series_2 = linear_timeseries(
          start=pd.Timestamp("1/1/2000"), length=5, freq="d"
      )
      with pytest.raises(ValueError) as err:
          get_shared_times(series_1, series_2)
      assert (
          "Specified series and/or times must all "
          "have the same type of `time_index` (i.e. all "
          "`pd.RangeIndex` or all `pd.DatetimeIndex`)."
      ) == str(err.value)
  
imports: from math import gcd
  import pandas
  import pytest
  from darts.utils.data.tabularization import get_shared_times
  from darts.utils.timeseries_generation import linear_timeseries
label_desc: Use image node_id 14 for calling the TestGetSharedTimes obj's underlying member method code with example usage: obj.test_shared_times_different_time_index_types_error() without return types