def test_initialization_valid_parameters():
    """
    Test that the GeneralizedGaussianFilter initializes correctly with valid parameters.
    """
    in_channels = 2
    sequence_length = 256
    sample_rate = 100.0  # Hz
    filter_layer = GeneralizedGaussianFilter(
        in_channels=in_channels,
        out_channels=in_channels,
        sequence_length=sequence_length,
        sample_rate=sample_rate,
        inverse_fourier=True,
    )
    assert isinstance(filter_layer, nn.Module), "Filter layer should be an instance of nn.Module"

    Test that the GeneralizedGaussianFilter initializes correctly with valid parameters.
    
test/unit_tests/models/test_modules.py