The leader of France’s far-right party was ordered to undergo psychiatric tests as part of a case into her sharing graphic images of ISIS atrocities.

Marine Le Pen, the National Front’s standard-bearer, tweeted the images in 2015, including one showing the decapitated body of ISIS victim James Foley and one of a jumpsuit-clad man being burned alive in a cage.

She posted the images following the Paris terror attacks of November 2015, in which 130 people were killed, after a journalist compared her party to ISIS militants.

“Daesh is this!” she’d written along with the images, using an Arabic acronym for ISIS.

Le Pen was ordered to take the psychiatric tests as part of a case against her, stemming from French laws against circulating “violent messages that incite terrorism or pornography or seriously harm human dignity” and that can be viewed by a minor.

A judge wants Le Pen to take the tests to determine whether she suffers from a mental illness or is “capable of understanding remarks and answering questions,” according to The Local France.

Le Pen – who lost to Emmanuel Macron in last year’s presidential election — called the move “crazy” in a series of tweets on Thursday.

“The regime is really starting to be frightening,” she said.

“I thought I had been through it all: well, no! For denouncing the horrors of Daesh (Isis) by tweets the ‘justice system’ has referred me for a psychiatric assessment. How far will they go?!” she added.

In an interview with local channel BFM-TV, she refused to go through the assessment. “I will wait to see how the magistrate intends to force me,” she said.

But judicial experts told Le Parisien that the judge’s request was routine.