The genius of “Louie” is that it changes tone on a whim. So after last week’s decidedly muted meditation on aging and masculinity, Louis C.K. lightened the mood with a deliberately uneven but wholly hilarious episode.

Louie and his daughters Lily and Jane told knock-knock jokes over dinner, and his laughter was genuine.

But that sweetness was balanced with another storyline that was shockingly raunchy and straight-up disturbing (but in a good way).