def METHOD_NAME(dut,image):
    command = "sudo sonic_installer set_next_boot {}".format(image)
    output = st.config(dut, command)
    retval = re.search(".*Image does not exist.*", output)
    if retval is None:
        return True
    else:
        st.log("Image does not exist")
        return False