code: def test_fourier_list_length_mismatch():
      """Tests exception raised when sp_list & fourier_terms_list lengths don't match."""
      with pytest.raises(ValueError) as ex:
          FourierFeatures(sp_list=[365, 52], fourier_terms_list=[1])
          assert ex.value == (
              "In FourierFeatures the length of the sp_list needs to be equal "
              "to the length of fourier_terms_list."
          )
  
file_path: sktime/sktime/transformations/series/tests/test_fourier.py
imports: from copy import deepcopy
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal, assert_index_equal
  from sktime.datasets import load_airline
  from sktime.transformations.series.fourier import FourierFeatures
label_desc: Use image node_id 1 for calling a global function with example usage: test_fourier_list_length_mismatch() without return types