def test_eegnex_final_layer_in_features(n_times_input):
    """
    Tests if the EEGNeX model correctly calculates the 'in_features'
    for its final linear layer during initialization, especially for
    n_times values that are not perfect multiples of pooling factors,
    considering the specified padding.
    """
    n_chans_test = 2
    n_outputs_test = 5

    model = EEGNeX(
        n_chans=n_chans_test,
        n_outputs=n_outputs_test,
        n_times=n_times_input
    )

    print(model)

    Tests if the EEGNeX model correctly calculates the 'in_features'
    for its final linear layer during initialization, especially for
    n_times values that are not perfect multiples of pooling factors,
    considering the specified padding.
    
test/unit_tests/models/test_models.py