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 cases
  where the bounds contains a single time index value. This
  particular test uses range time index series to check this
  behaviour.
docstr_tok: ["Tests","that","`","get_shared_times_bounds","`","correctly","handles","cases","where","the","bounds","contains","a","single","time","index","value",".","This","particular","test","uses","range","time","index","series","to","check","this","behaviour","."]
code: def test_shared_times_bounds_single_idx_overlap_range_idx(self):
      """
      Tests that `get_shared_times_bounds` correctly handles cases
      where the bounds contains a single time index value. This
      particular test uses range time index series to check this
      behaviour.
      """
      # Pass multiple copies of timeseries with single time
      # value - bounds should be start time and end time of
      # this single-valued series:
      series = linear_timeseries(start=0, length=1, freq=1)
      assert get_shared_times_bounds(series, series) == (
          series.start_time(),
          series.end_time(),
      )
      # `series_1` and `series_2` share only a single overlap point
      # at the end of `series_1`:
      series_1 = linear_timeseries(start=0, length=3, freq=1)
      series_2 = linear_timeseries(
          start=series_1.end_time(), length=2, freq=2
      )
      assert get_shared_times_bounds(series_1, series_2) == (
          series_1.end_time(),
          series_2.start_time(),
      )
  
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 9 for calling the TestGetSharedTimesBounds obj's underlying member method code with example usage: obj.test_shared_times_bounds_single_idx_overlap_range_idx() without return types