Meet Nasubi, the Japanese Truman Burbank whose life was secretly videotaped for a year and shown on national television.

In a strange twist on “The Truman Show” – in which Jim Carrey stars as a man unaware his life has been a staged TV show – the exploits of Nasubi were beamed to more than 17 million viewers in Japan each Sunday night by Nippon Television.

Each week, delighted viewers watched as Nasubi, a struggling stand-up comic, cavorted naked in his one-room apartment – with the network superimposing an eggplant over his exposed genitals.

Nasubi, 23, undertook the stunt as part of the Japanese variety show “Susunu Denpa Shonen!” (“Don’t Go For It, Electric Boy!”), known for its outrageous stunts, such as seeing if two Japanese men could hitchhike from South Africa to Norway. (They did.)

In this latest “Electric Boy!” stunt, Nasubi agreed to hole up in a dingy, one-room apartment without food, clothing or even toilet paper.

The challenge: To survive until winning $8,300 (1 million yen) worth of prizes from magazine sweepstakes.

Nasubi was free to leave any time and knew he was being filmed by two cameras – but was unaware the footage was being shown each Sunday night on TV.

Even though he filled out more than 1,000 entry forms each week, the only clothing Nasubi won was a loose-fitting pair of women’s panties – so he opted to wear his birthday suit while his hair and beard grew long and scraggly.

He was, however, lucky enough to win dog food, rice and a tent.

And a gleeful Nasubi finally won toilet paper – after using his hands for 10 months.

When Nasubi at last reached his goal of $8,300 in prizes, “Electric Boy!” producers led the naked man into a “waiting room” – whose walls collapsed to reveal a cheering studio audience.

“Do you mean that everyone has been watching my naked body all this time?” a shocked Nasubi asked. “That’s out of order. Is it allowed?”

But after downing some hot miso soup, rice and pickled plums, a still-naked Nasubi calmed down a bit.

“I suffered mentally every day,” he said. “I felt as if I was trapped between sanity and madness.”

Nasubi has now become a national hero, with his own line of merchandise and features in women’s magazines lauding his good health, despite his living in cramped, fetid conditions.