def METHOD_NAME(self, color):
    mode = None
    for key, val in SYSLED_MODES.items():
        if val == color:
            mode = key
            break
    if mode is None:
        return False
    else:
        return self._api_helper.write_txt_file(SYSLED_FNODE, mode)