def install_linux_x32_compatibility(user_io):
    if OSInfo.is_linux() and OSInfo.architecture() == Architecture("64bit"):
        cmd = "dpkg-query -S lib32z1"
        exit_code, _ = execute(cmd, UserIO(out=BiiOutputStream(StringIO())))
        if exit_code == 0:
            user_io.out.writeln('x86 compatibility for 64bits already installed',
                                front=Color.GREEN)
        else:
            user_io.out.writeln('Installing x86 compatibility for 64bits architecture...',
                                front=Color.GREEN)
            user_io.out.warn('Installing lib32z1 as "sudo", enter "sudo" password if requested')
            os.system('sudo apt-get install lib32z1')
dataset/ETHPy150Open biicode/client/setups/rpi_cross_compiler.py/install_linux_x32_compatibility/original