def longest_monotonic_subsequence_loose(xs):
    lis = longest_increasing_subsequence_loose(xs)
    lds = longest_decreasing_subsequence_loose(xs)
    if len(lds) >= len(lis):
        return lis
    return lds
dataset/ETHPy150Open tanghaibao/jcvi/algorithms/lis.py/longest_monotonic_subsequence_loose/swapped operands of `>=`