def transform_resize_arguments(red_node):
    """ Replace 'wrap' -> fixed_wrap
        'saturate' -> fixed_saturate
        'truncate' -> fixed_truncate
        'round' -> fixed_round

        Force default fixed_wrap and fixed_truncate.
    """
    nodes = red_node.find_all('call')
    for call in nodes:
        call_index = call.previous.index_on_parent
        if call_index != 0:
            continue
        if call.previous.value not in ['resize', 'Sfix']:
            continue
        args = call.find_all('call_argument')
        overflow_kword_found = False
        round_kword_found = False
        for arg in args:
            if str(arg.value) == "'wrap'":
                arg.value = 'fixed_wrap'
                arg.target = 'overflow_style'
                overflow_kword_found = True
            if str(arg.value) == "'saturate'":
                arg.value = 'fixed_saturate'
                arg.target = 'overflow_style'
                overflow_kword_found = True
            if str(arg.value) == "'truncate'":
                arg.value = 'fixed_truncate'
                arg.target = 'round_style'
                round_kword_found = True
            if str(arg.value) == "'round'":
                arg.value = 'fixed_round'
                arg.target = 'round_style'
                round_kword_found = True
        if not overflow_kword_found:
            call.append(f'overflow_style=fixed_wrap')
        if not round_kword_found:
            call.append(f'round_style=fixed_truncate')
