“Andy’s Play” (Season 7, Episode 3) The always-theatrical Andy (Ed Helms) invites the Dunder Mifflin team to see his community theater production of Sweeney Todd .

“That ’70s Musical” (Season 4, Episode 24) On the eve of the spring play, Fez (Wilmer Valderrama) dreams about an ideal world that exists only in song.

“Regional Holiday Musical” (Season 3, Episode 10) It is said that imitation is the highest form of flattery. And when this show took on Glee in this parody of epic proportions, it was extra fun.

“Lesser Evils” (Season 2, Episode 9) The cast sings Les Miserables ‘ “One Day More” as they prepare for battle.

“My Musical” (Season 6, Episode 6) A patient with a head injury hears nothing but music as the Sacred Heart healthcare workers buzz about. One of the most memorable original songs? “Guy Love.”

“Psych the Musical” (Season 7, Episode 15) Shawn (James Roday) and Gus (Dule Hill) put a little pizzazz into their latest investigation by singing as they go.

“Duet” (Season 3, Episode 17) In an amazing crossover episode, Supergirl (Melissa Benoist) and The Flash (Grant Gustin) are thrown into a musical world that makes them sing and dance in order to escape.

“The Nightman Cometh” (Season 4, Episode 13) Charlie (Charlie Day) decides to stage his original musical, The Nightman Cometh , and the rest of the gang are there to help him — no matter how strange.

“Song Beneath the Song” (Season 7, Episode 18) After Callie (Sara Ramirez) goes through a traumatic event, the docs of Seattle Grace break out into song around her.

“Girls vs. Suits” (Season 5, Episode 12) Ladies man Barney (Neil Patrick Harris) breaks out into a well-choreographed number in an episode where he has to choose between a romantic conquest and his go-to look: suits.

“Marge vs. the Monorail” (Season 4, Episode 12) While pitching the idea for a Springfield-based monorail, the presenter does so through song.

“Once More, with Feeling” (Season 6, Episode 7) In this special episode, Sunnydale is a Broadway lover’s paradise as the cast is compelled by a demon to bust out tunes at random moments and reveal hidden truths.

“Episode 210” (Season 2, Episode 10) When Kenneth (Jack McBrayer) discovers the addictive tendencies of caffeine he decides to return home, breaking out into a unique rendition of “Midnight Train to Georgia.”

Musical episodes of TV shows have become more and more popular over the years, with some series breaking out into elaborate routines, and others incorporating song into dialogue.

Riverdale's "Chapter Thirty-One: A Night to Remember," is the latest episode to join in this modern television tradition, featuring a school musical adaptation of Stephen King horror classic, Carrie.

To get in the spirit, we're looking back at episodes from The Office, Scrubs, 30 Rock and more that have tried their hand at the genre. Click through the gallery above for them all!