def test_inverse_transfrom_sliced(self):
        """Verify that MIDAS works as expected when the series is sliced prior to the inverse transform."""
        midas = MIDAS(low_freq="QS", strip=False)
        quarterly_series = midas.fit_transform(self.monthly_ts)
        inversed_quaterly = midas.inverse_transform(quarterly_series[2:])
        # the shift introduce by the slicing operation on the transformed ts is : 2 * 3 months per quarter = 6
        assert inversed_quaterly == self.monthly_ts[6:]
Verify that MIDAS works as expected when the series is sliced prior to the inverse transform.
darts/tests/dataprocessing/transformers/test_midas.py