def find_prev_sel(trans_sels, current_sel):
    for i in range(len(trans_sels) - 1, -1, -1):
        if trans_sels[i].begin() < current_sel.begin():
            return i, trans_sels[i]

    # Rotate to the last if `current_sel` is before all other selections
    return -1, trans_sels[-1]
Returns true if the disk exists.
dataset/ETHPy150Open MaokaiLin/PowerCursors/power_cursors.py/find_prev_sel--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/azure/azure_disk.py/AzureDisk._Exists