Copied! This is the exact same instance I Employed in an earlier part to discuss functionality composition. It generally permits substituting print() with a custom made function of the identical interface. To check if it prints the correct concept, You will need to intercept it by injecting a mocked operate: Copied! The prompt parameter is total