def _dup_ff_trivial_gcd(f, g, K):
    """Handle trivial cases in GCD algorithm over a field. """
    if not (f and g):
        return [], [], []
    elif not f:
        return dup_monic(g, K), [], [dup_LC(g, K)]
    elif not g:
        return dup_monic(f, K), [dup_LC(f, K)], []
    else:
        return None
dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/_dup_ff_trivial_gcd/operator `or` -> `and`