def test_default_band_filters(sample_input):
    """Test that default band_filters are set correctly when None is provided."""
    n_chans = 8
    sfreq = 100
    layer = FilterBankLayer(n_chans=n_chans, sfreq=sfreq, band_filters=None)

    expected_band_filters = [(low, low + 4) for low in range(4, 36 + 1, 4)]
    assert layer.band_filters == expected_band_filters, "Default band_filters not set correctly."
    assert layer.n_bands == 9, "Number of bands should be 9."

    output = layer(sample_input)
    assert output.shape[1] == layer.n_bands, "Output band dimension mismatch."
    assert output.shape[2] == n_chans, "Output channel dimension mismatch."
Test that default band_filters are set correctly when None is provided.
test/unit_tests/models/test_modules.py