def selectGuardNode(cons_rel_stats, descriptors, guards, fast, stable,
                    exit_desc, exit_status_entry):
    try:
        guard_candidates = [g for g in guards
                            if guardFilter(g, cons_rel_stats, descriptors,
                                           fast, stable, exit_desc,
                                           exit_status_entry)]
        return random.choice(guard_candidates)
    except __HOLE__:
        raise NoUsableGuardsException("No usable guard nodes for requested "
                                      "path.")
dataset/ETHPy150Open nskinkel/oppy/oppy/path/path.py/selectGuardNode