class_docstr: Tests `get_shared_times` function defined in `darts.utils.data.tabularization`.
class_docstr_tok: ["Tests","`","get_shared_times","`","function","defined","in","`","darts.utils.data.tabularization","`","."]
docstr: Tests that `get_shared_times` returns correct bounds when
  given datetime index series that overlap at a single time point.
docstr_tok: ["Tests","that","`","get_shared_times","`","returns","correct","bounds","when","given","datetime","index","series","that","overlap","at","a","single","time","point","."]
code: def test_shared_times_single_time_point_overlap_datetime_idx(self):
      """
      Tests that `get_shared_times` returns correct bounds when
      given datetime index series that overlap at a single time point.
      """
      # `series_1` and `series_2` only overlap at `series_1.end_time()`:
      series_1 = linear_timeseries(
          start=pd.Timestamp("1/1/2000"),
          end=pd.Timestamp("1/11/2000"),
          freq="2d",
      )
      series_2 = linear_timeseries(
          start=series_1.end_time(), length=5, freq="3d"
      )
      overlap_val = series_1.end_time()
      assert get_shared_times(series_1, series_2) == overlap_val
      assert (
          get_shared_times(series_1, series_1, series_2) == overlap_val
      )
      assert (
          get_shared_times(series_1, series_2, series_2) == overlap_val
      )
      assert (
          get_shared_times(series_1, series_1, series_2, series_2)
          == overlap_val
      )
  
imports: from math import gcd
  import pandas
  import pytest
  from darts.utils.data.tabularization import get_shared_times
  from darts.utils.timeseries_generation import linear_timeseries
label_desc: Use image node_id 8 for calling the TestGetSharedTimes obj's underlying member method code with example usage: obj.test_shared_times_single_time_point_overlap_datetime_idx() without return types