def is_luks(device):
    try:
        # check to see if the device uses LUKS: exit status is 0
        # if the device is a LUKS partition and non-zero if not
        utils.execute('cryptsetup', 'isLuks', '--verbose', device,
                      run_as_root=True, check_exit_code=True)
        return True
    except processutils.ProcessExecutionError as e:
        LOG.warning(_LW("isLuks exited abnormally (status %(exit_code)s): "
                        "%(stderr)s"),
                    {"exit_code": e.exit_code, "stderr": e.stderr})
        return False
The node immediately preceding the invocant in their parent's children
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/volume/encryptors/luks.py/is_luks--crossover with--dataset/ETHPy150Open ctxis/canape/CANAPE.Scripting/Lib/lib2to3/pytree.py/Base.prev_sibling