docstr: Tests if the transformer raises an error when the user asks for a transform in the wrong direction.
docstr_tok: ["Tests","if","the","transformer","raises","an","error","when","the","user","asks","for","a","transform","in","the","wrong","direction","."]
code: def test_error_when_from_low_to_high(self):
      """
      Tests if the transformer raises an error when the user asks for a transform in the wrong direction.
      """
      # wrong direction : low to high freq
      midas_1 = MIDAS(low_freq="M")
      with pytest.raises(ValueError):
          midas_1.fit_transform(self.quarterly_ts)
  
      # transform to same index requested
      midas_2 = MIDAS(low_freq="Q")
      with pytest.raises(ValueError):
          midas_2.fit_transform(self.quarterly_ts)
  
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 9 for calling the TestMIDAS obj's underlying member method code with example usage: obj.test_error_when_from_low_to_high() without return types