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)

        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.
        
darts/tests/utils/tabularization/test_get_shared_times_bounds.py