<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transform_26_27(inst, new_inst, i, n, offset, instructions, new_asm):
 """Change JUMP_IF_FALSE and JUMP_IF_TRUE to POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE"""

    if inst.opname in ('JUMP_IF_FALSE', 'JUMP_IF_TRUE'):
        i += 1
        assert i < n
        assert instructions[i].opname == 'POP_TOP'
        new_inst.offset = offset
        new_inst.opname = (
            'POP_JUMP_IF_FALSE' if inst.opname == 'JUMP_IF_FALSE' else 'POP_JUMP_IF_TRUE'
        )
        new_asm.backpatch[-1].remove(inst)
        new_inst.arg = 'L%d' % (inst.offset + inst.arg + 3)
        new_asm.backpatch[-1].add(new_inst)
    else:
        xlate26_27(new_inst)
    return xdis.op_size(new_inst.opcode, opcode_27)