In movies and TV to save on royalties they would play a song that almost sounds like another popular song with just a few notes changed. They are meant to fool the audience or at least try to give off the same effect.
Example: Escape montage from Take the Money and Run sounds like Quincy Jones' Soul Bossa Nova.
Marvin Hamlisch's imitation:
What are those types of songs called?