def METHOD_NAME(mode_tuple: Tuple[Optional[str], str, bool]) -> List[Chargepoint]:
    mode = mode_tuple[0]
    submode = mode_tuple[1]
    prio = mode_tuple[2]
    # enthält alle LP, auf die das Tupel zutrifft
    valid_chargepoints = []
    for cp in data.data.cp_data.values():
        if cp.data.set.charging_ev != -1:
            charging_ev = cp.data.set.charging_ev_data
            if ((charging_ev.data.control_parameter.prio == prio) and
                (charging_ev.data.control_parameter.chargemode == mode or
                    mode is None) and
                    (charging_ev.data.control_parameter.submode == submode)):
                valid_chargepoints.append(cp)
    return valid_chargepoints