class_docstr: Tests `get_shared_times_bounds` function defined in `darts.utils.data.tabularization`.
class_docstr_tok: ["Tests","`","get_shared_times_bounds","`","function","defined","in","`","darts.utils.data.tabularization","`","."]
docstr: Tests that `get_shared_times_bounds` throws correct error
  when a range time index series and a datetime index series
  are specified as inputs together.
docstr_tok: ["Tests","that","`","get_shared_times_bounds","`","throws","correct","error","when","a","range","time","index","series","and","a","datetime","index","series","are","specified","as","inputs","together","."]
code: def test_shared_times_bounds_different_time_idx_types_error(self):
      """
      Tests that `get_shared_times_bounds` throws correct error
      when a range time index series and a datetime index series
      are specified as inputs together.
      """
      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_bounds(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)
  
file_path: darts/darts/tests/utils/tabularization/test_get_shared_times_bounds.py
imports: import pandas
  import pytest
  from darts.utils.data.tabularization import get_shared_times_bounds
  from darts.utils.timeseries_generation import linear_timeseries
label_desc: Use image node_id 13 for calling the TestGetSharedTimesBounds obj's underlying member method code with example usage: obj.test_shared_times_bounds_different_time_idx_types_error() without return types