def install_or_upgrade(installed_version, version, user_io):
    if not installed_version:
        user_io.out.writeln('Not found. Do you want to download it?', front=Color.CYAN)
        return user_io.request_boolean(default_option=True)
    elif Version(installed_version) < Version(version):
        user_io.out.writeln('%s older than %s. Do you want to upgrade?'
                                  % (Version(installed_version), version), front=Color.CYAN)
        return user_io.request_boolean(default_option=True)
    elif Version(installed_version) >= Version(version):
        user_io.out.writeln('%s newer or equal %s. Already installed'
                                  % (Version(installed_version), version), front=Color.GREEN)
dataset/ETHPy150Open biicode/client/setups/setup_tools.py/install_or_upgrade/original