Yes, but the courts would dismiss the case. If not the appeals court would. If not the Supreme Court would.

And then you use presidential immunity to Maduro a few justices.

At least 3 members of the Supreme Court are among those working under the current admin who need to be serving life sentences in prison.

If at least two-thirds of the Senate doesn't agree, then that doesn't matter.