Katy Perry is headed to the small screen again. The pop diva booked a guest spot as a -- get this! -- prison attendant on Fox's 'Raising Hope.' The episode is set to air on Tuesday, March 6 at 8 PM ET/PT and it's called 'Single White Female Role Model.' From pop star to prison attendant: Katy Perry does it all.

Perry will portray Rikki, a prison attendant claiming to be a friend of 'Raising Hope' character Sabrina, played by Shannon Woodward. Perry decided to take the role since Woodward is her BFF. Wait, we thought Rihanna was her bestie. Ah, well, a girl can have two best friends, can't she?

Executive producer Greg Garcia said, "Shannon Woodward told me that her friend Katy was interested in doing an episode and I thought, ‘Why not? Let's do your friend Katy a favor.'"

But the "favor" actually turned out better than expected, since Perry nailed it. As if we expected any less -- this is Katy freakin' Perry we're talking about. There are no limits to the 'Part of Me' singer's talents.

Garcia continued, with tongue-in-cheek, saying, "Then she came in and did a terrific job. She was hilarious. And now people are telling me that Katy is also a singer. I sincerely hope that her appearance on the show helps her get her singing career off the ground. It's a tough business!"

Perry also commented on how her role as Rikki came to be. “Shannon Woodward is my best friend,” said Perry. “A couple weeks ago, I was home, just toasting up a frozen chicken fillet when she called me up and asked if I wanted to do something ‘fun’ for a change and try out a guest role on her TV show. I thought, ‘Sure, I have nothing else to do, and I like chillin’ with my best friend.’ Greg was nice, but I hope he’s not secretly sabotaging my potential future career by typecasting me in the role of just a looker, so that I would never be able to play anything more challenging.”

If you want more deets about Perry's appearance, here they are. Sabrina participates in an Occupy Natesville protest and thus slapped with a two-week prison sentence. Rikki gains pleasure from making her stay in the clink utterly miserable. That is until she recalls their long-ago friendship.

Who's going to watch Katy Perry, who previously appeared on 'The Simpsons' and 'How I Met Your Mother,' on 'Raising Hope?'