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` correctly handles case where
  multiple copies of same datetime index timeseries is passed;
  we expect that the unaltered time index of the series is returned.
docstr_tok: ["Tests","that","`","get_shared_times","`","correctly","handles","case","where","multiple","copies","of","same","datetime","index","timeseries","is","passed",";","we","expect","that","the","unaltered","time","index","of","the","series","is","returned","."]
code: def test_shared_times_identical_inputs_datetime_idx(self):
      """
      Tests that `get_shared_times` correctly handles case where
      multiple copies of same datetime index timeseries is passed;
      we expect that the unaltered time index of the series is returned.
      """
      series = linear_timeseries(
          start=pd.Timestamp("1/1/2000"), length=5, freq="d"
      )
      assert series.time_index.equals(get_shared_times(series))
      assert series.time_index.equals(get_shared_times(series, series))
      assert series.time_index.equals(
          get_shared_times(series, series, series)
      )
  
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 10 for calling the TestGetSharedTimes obj's underlying member method code with example usage: obj.test_shared_times_identical_inputs_datetime_idx() without return types