code: def test_window_error():
      """Test that wrong window parameters raise error."""
      X = np.random.randn(5, 2, 3)
  
      # Check dyadic gives a value error
      method = SignatureTransformer(
          window_name="dyadic", window_depth=10
      )
      with pytest.raises(ValueError):
          method.fit_transform(X)
  
      # Expanding and sliding errors
      method = SignatureTransformer(
          window_name="expanding", window_length=10, window_step=5
      )
      with pytest.raises(ValueError):
          method.fit_transform(X)
      method = SignatureTransformer(
          window_name="sliding", window_length=10, window_step=5
      )
      with pytest.raises(ValueError):
          method.fit_transform(X)
  
imports: import numpy
  import pytest
  from sktime.tests.test_switch import run_test_for_class
  from sktime.transformations.panel.signature_based import SignatureTransformer
label_desc: Use image node_id 2 for calling a global function with example usage: test_window_error() without return types