template method pattern def send_transaction(transactionsystem)if system ="system "print("send transaction to system { ! }format(transaction)elif system ="system "print("send transaction to system { ! }format(transaction)elif system ="system "print("send transaction to system { ! }format(transaction)elseprint("no valid system"the test cases we included in the main function result in output similar to the one that follows just be aware that since dictionaries are not ordered in terms of their keysthe order of the items in the dictionary that is printed may vary from machine to machine what is important is that the overall structure remains the sameas do the values of the keys =========running stock sync between local and remote system retrieving remote stock items from system updating local items sending updates to third party system send transaction to system ({'items'[{'item_id' 'value' 'amount_purchased' }]'id' },=========running stock sync between local and remote system retrieving remote stock items from system updating local items sending updates to third party system send transaction to system ({'items'[{'item_id' 'value' 'amount_purchased' }]'id' },=========running stock sync between local and remote system retrieving remote stock items from system updating local items sending updates to third party system send transaction to system ({'items'[{'item_id' 'value' 'amount_purchased' }]'id' },