def test_shared_times_bounds_overlapping_range_idx_series(self, series_type):
        """
        Tests that `get_shared_times_bounds` correctly computes bounds
        of two overlapping time index timeseries.
        """
        # Defined so `series_1` starts and ends before `series_2` does:
        if series_type == "integer":
            series_1 = linear_timeseries(start=1, end=15, freq=3)
            series_2 = linear_timeseries(start=2, end=20, freq=2)
        else:
            series_1 = linear_timeseries(
                start=pd.Timestamp("1/1/2000"), end=pd.Timestamp("1/15/2000"), freq="3d"
            )
            series_2 = linear_timeseries(
                start=pd.Timestamp("1/2/2000"), end=pd.Timestamp("1/20/2000"), freq="2d"
            )
        expected_bounds = (series_2.start_time(), series_1.end_time())
        assert get_shared_times_bounds(series_1, series_2) == expected_bounds

        Tests that `get_shared_times_bounds` correctly computes bounds
        of two overlapping time index timeseries.
        
darts/tests/utils/tabularization/test_get_shared_times_bounds.py