def test_shared_times_bounds_subset_series(self, series_type):
        """
        Tests that `get_shared_times_bounds` correctly handles case where
        the provided series are formed by taking successive subsets of an
        initial series (i.e. `series_2` is formed by taking a subset of
        `series_1`, and `series_3` is formed by taking a subset of `series_2`).
        In such cases, the bounds are simply the start and end times of the
        shortest series.
        """
        if series_type == "integer":
            series = linear_timeseries(start=0, length=10, freq=3)
        else:
            series = linear_timeseries(
                start=pd.Timestamp("1/1/2000"), length=10, freq="3d"
            )
        subseries = (
            series.copy()
            .drop_after(series.time_index[-1])
            .drop_before(series.time_index[1])
        )
        subsubseries = (
            subseries.copy()
            .drop_after(subseries.time_index[-1])
            .drop_before(subseries.time_index[1])
        )
        expected_bounds = (subsubseries.start_time(), subsubseries.end_time())
        assert (
            get_shared_times_bounds(series, subseries, subsubseries) == expected_bounds
        )

        Tests that `get_shared_times_bounds` correctly handles case where
        the provided series are formed by taking successive subsets of an
        initial series (i.e. `series_2` is formed by taking a subset of
        `series_1`, and `series_3` is formed by taking a subset of `series_2`).
        In such cases, the bounds are simply the start and end times of the
        shortest series.
        
darts/tests/utils/tabularization/test_get_shared_times_bounds.py