code: def test_error_when_duplicated_windows(_window):
      with pytest.raises(ValueError):
          WindowFeatures(window=_window)
  
file_path: feature_engine/tests/test_time_series/test_forecasting/test_window_features.py
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
  from feature_engine.timeseries.forecasting import WindowFeatures
label_desc: Use image node_id 1 for calling a global function with example usage: test_error_when_duplicated_windows(_window) without return types