def test_from_second_to_minute(self):
        """
        Test to see if other frequencies transforms like second to minute work as well.
        """

        second_times = pd.date_range(start="01-2020", periods=120, freq=freqs["s"])
        second_values = np.arange(1, len(second_times) + 1)
        second_ts = TimeSeries.from_times_and_values(
            times=second_times, values=second_values, columns=["values"]
        )

        minute_times = pd.date_range(start="01-2020", periods=2, freq=freqs["min"])
        minute_values = np.array([
            [i for i in range(1, 61)],
            [i for i in range(61, 121)],
        ])
        minute_ts = TimeSeries.from_times_and_values(
            times=minute_times,
            values=minute_values,
            columns=[f"values_midas_{i}" for i in range(60)],
        )

        midas = MIDAS(low_freq=freqs["min"])
        minute_ts_midas = midas.fit_transform(second_ts)
        assert minute_ts_midas == minute_ts
        second_ts_midas = midas.inverse_transform(minute_ts_midas)
        assert second_ts_midas == second_ts

        Test to see if other frequencies transforms like second to minute work as well.
        
darts/tests/dataprocessing/transformers/test_midas.py