def _action_has_highlight(actions):
    for action in actions:
        try:
            if action.get("set_tweak", None) == "highlight":
                return action.get("value", True)
        except __HOLE__:
            pass

    return False
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/sync.py/_action_has_highlight