docstr: Verify that MIDAS works as expected when the series is sliced prior to the inverse transform.
docstr_tok: ["Verify","that","MIDAS","works","as","expected","when","the","series","is","sliced","prior","to","the","inverse","transform","."]
code: 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:]
  
imports: import numpy
  import pandas
  import pytest
  from darts import TimeSeries
  from darts.dataprocessing.transformers import MIDAS
  from darts.models import LinearRegressionModel
  from darts.utils.timeseries_generation import generate_index, linear_timeseries
label_desc: Use image node_id 12 for calling the TestMIDAS obj's underlying member method code with example usage: obj.test_inverse_transfrom_sliced() without return types