def METHOD_NAME() -> List[FlashMode]:
    flash_xml = ET.parse(os.path.join(utils.CONF_DIR, "flash_modes.xml"))
    modes = []
    for xml_mode in flash_xml.getroot().findall("mode"):
        mode_name = xml_mode.get("name")
        vars = {}
        for xml_var in xml_mode.findall("variable"):
            var_name = xml_var.get("name")
            var_value = xml_var.get("value")
            vars[var_name] = var_value
        mode = FlashMode(mode_name, vars)
        for xml_board in xml_mode.find("boards").findall("board"):
            board = xml_board.get("name")
            mode.boards.append(board)
        modes.append(mode)
    return modes