def METHOD_NAME(binning_method):
    """Test SFA transformer expected output."""
    # load training data
    X, y = load_gunpoint(split="train", return_X_y=True)
    word_length = 6
    alphabet_size = 4
    p = SFA(
        word_length=word_length,
        alphabet_size=alphabet_size,
        binning_method=binning_method,
    )
    p.fit(X, y)
    assert p.breakpoints.shape == (word_length, alphabet_size)
    i = sys.float_info.max if binning_method == "information-gain" else 0
    assert np.equal(i, p.breakpoints[1, :-1]).all()  # imag component is 0 or inf
    _ = p.transform(X, y)