code: def test_expanding_window_raises_when_periods_negative():
      with pytest.raises(
          ValueError,
          match="periods must be a non-negative integer. Got -1 instead.",
      ):
          ExpandingWindowFeatures(periods=-1)
  
file_path: feature_engine/tests/test_time_series/test_forecasting/test_expanding_window_features.py
imports: import numpy
  import pytest
  from pandas.testing import assert_frame_equal
  from feature_engine.timeseries.forecasting import ExpandingWindowFeatures
label_desc: Use image node_id 15 for calling a global function with example usage: test_expanding_window_raises_when_periods_negative() without return types