def check_retry_transition(old_state, new_state):
    """Check that retry can transition from ``old_state`` to ``new_state``.

    If transition can be performed, it returns true, false otherwise.
    """
    pair = (old_state, new_state)
    if _ALLOWED_RETRY_TRANSITIONS in pair:
        return True
    return False
dataset/ETHPy150Open openstack/taskflow/taskflow/states.py/check_retry_transition/swapped operands of `in`