Copied! Here is the similar illustration I used in an before area to talk about perform composition. It essentially permits substituting print() having a tailor made perform of a similar interface. To check if it prints the proper message, You will need to intercept it by injecting a mocked function: https://zaneeiaso.ampedpages.com/getting-my-print-server-to-work-58653778