def data_types_by_protocol(protocol_array):
    result = {}
    for proto in protocol_array:
        if "A" in proto:
            data_types = []
            result[proto] = data_types
        elif "D" in proto:
            data_types.append(proto)
    return result
Return a dict mapping each protocol Annn
dataset/ETHPy150Open braiden/python-ant-downloader/antd/garmin.py/data_types_by_protocol