While Russian troops have battered Ukraine, officials in China have been meeting behind closed doors to study a Communist Party-produced documentary that extols President Vladimir Putin of Russia as a hero.

The humiliating collapse of the Soviet Union, the video says, was the result of efforts by the United States to destroy its legitimacy. With swelling music and sunny scenes of present-day Moscow, the documentary praises Putin for restoring Josef Stalin’s standing as a great wartime leader and for renewing patriotic pride in Russia’s past.

To the world, China casts itself as a principled onlooker of the war in Ukraine, not picking sides, simply seeking peace. At home, though, the Chinese Communist Party is pushing a campaign that paints Russia as a long-suffering victim rather than an aggressor and defends China’s strong ties with Moscow as vital.