def _update_args(args, key, value):
    """Add a new ``(key, value)`` pair to arguments ``dict``. """
    args = dict(args)

    if args not in key:
        args[key] = value

    return args
dataset/ETHPy150Open sympy/sympy/sympy/polys/polytools.py/_update_args/swapped operands of `not in`