 That series' co-creator, Paul Feig, has directed several episodes of "The Office", including "Email Surveillance".Kaling used her own Indian cultural background as inspiration when writing the episode, which portrays the Indian festival of Diwali.She and her friend, "My Name Is Earl" writer Vali Chandrasekaran, had held a Diwali party in 2005 for the cast of their two shows.