Martin Shkreli walking to court, June 29, 2017. Justin Solomon | CNBC

Court records indicate that a psychiatric examination was sought for "pharma bro" Martin Shkreli after he was jailed last week for offering a bizarre cash bounty for some of Hillary Clinton's hair. The motion for Shkreli's psychiatric examination was filed in recent days in Brooklyn, New York, federal court, records for his criminal case there indicate. Although the motion is not visible to public inspection, other records that are public refer to it.

But because the motion is not public, it is not known who requested the exam for the eccentric, disgraced pharmaceutical executive, or why it was sought. However, an online court database reveals that Judge Kiyo Matsumoto issued an order on the motion on Tuesday. Records do not indicate what Matsumoto ordered.

In opening arguments at Shkreli's trial on fraud charges this past summer, which Matsumoto presided over, his own lawyer, Benjamin Brafman, told jurors, "Maybe he's just nuts, but that doesn't make him guilty." "Will you find him strange? Yes. Will you find him weird? Yes!" Brafman also said at the time about his client, who has a history of erratic behavior. During Shkreli's trial, a former board member of one of Shkreli's drug companies testified that Shkreli had confided that he had suffered from depression, and took prescription medication for that condition. The board member, Steven Richardson, also testified that he was not aware, as Shkreli's other lawyer Marc Agnifilo had suggested in questioning, that Shkreli on occasion "couldn't bring himself to leave his house." The psychiatric exam motion came six days after an angry Matsumoto revoked Shkreli's $5 million release bond because of a $5,000 bounty he offered to Facebook followers who grabbed samples of hair from former Secretary of State Clinton and gave them to him.

WATCH: Co-worker says Shkreli 'mentally unstable'