template method pattern def send_transaction_strategy_system (transaction)print("send transaction to system { ! }format(transaction)def main()transaction "id" "items""item_id" "amount_purchased" "value" ]}print("="* sync_stock_items(stock_sync_strategy_system send_transactiontransactionsend_transaction_strategy_system print("="* sync_stock_items(stock_sync_strategy_system send_transactiontransactionsend_transaction_strategy_system print("="* sync_stock_items(stock_sync_strategy_system send_transactiontransactionsend_transaction_strategy_system if __name__ ="__main__"main(