Wonka features a complete revision of Gene Wilder's "Pure Imagination" song, and the director and music producer explain why. A prequel to Roald Dahl's Charlie and the Chocolate Factory, the 1971 Willy Wonka & the Chocolate Factory movie, and 2005's Charlie and the Chocolate Factory, the movie explores just how Willy Wonka came to develop his chocolate factory. Along the way, it honors prior movies by including elements like Wilder's iconic song.
https://screenrant.com/wonka-ending-new-pure-imagination-director-music-producer-response/