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` 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. This particular test uses datetime index series to
  check this behaviour.
docstr_tok: ["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",".","This","particular","test","uses","datetime","index","series","to","check","this","behaviour","."]
code: def test_shared_times_bounds_subset_series_datetime_idx(self):
      """
      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. This particular test uses datetime index series to
      check this behaviour.
      """
      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
      )
  
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 5 for calling the TestGetSharedTimesBounds obj's underlying member method code with example usage: obj.test_shared_times_bounds_subset_series_datetime_idx() without return types