def METHOD_NAME(signer, triples):
    transactions = [
        create_transaction(signer, verb, name, value)
        for verb, name, value in triples
    ]
    txn_signatures = [txn.header_signature for txn in transactions]
    header = BatchHeader(
        signer_public_key=signer.get_public_key().as_hex(),
        transaction_ids=txn_signatures
    ).SerializeToString()
    signature = signer.sign(header)
    batch = Batch(
        header=header,
        transactions=transactions,
        header_signature=signature)
    batch_list = BatchList(batches=[batch])
    return batch_list.SerializeToString()