def test_initialization_invalid_parameters():
    """
    Test that the GeneralizedGaussianFilter raises an assertion error when initialized with invalid parameters.
    """
    in_channels = 2
    out_channels = 5  # Not a multiple of in_channels
    sequence_length = 256
    sample_rate = 100.0  # Hz
    with pytest.raises(AssertionError):
        GeneralizedGaussianFilter(
            in_channels=in_channels,
            out_channels=out_channels,  # Should raise an error
            sequence_length=sequence_length,
            sample_rate=sample_rate,
            inverse_fourier=True,
            f_mean=(10.0, 20.0),
            bandwidth=(5.0, 10.0),
            shape=(2.0, 2.5)
        )

    Test that the GeneralizedGaussianFilter raises an assertion error when initialized with invalid parameters.
    
test/unit_tests/models/test_modules.py