def LateralJoin(lhs, rhs, join_type='LEFT', condition=True):
    return Clause(
        lhs,
        SQL(join_type % '%s JOIN LATERAL'),
        rhs,
        SQL('ON %s', condition))
dataset/ETHPy150Open coleifer/peewee/playhouse/postgres_ext.py/LateralJoin/swapped operands of `%`