def verify_transaction_actions(transactions):
    assert transactions and all(
        tx.action == transactions[0].action for tx in transactions
    )
Make sure the transactions are all in a consistent state.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/commtrack/sms.py/verify_transaction_actions