The District Attorneys Association of New York and some individual prosecutors filed a complaint against Gov. Andrew Cuomo and the leaders of both state legislative chambers on Wednesday, challenging the constitutionality of a new law that creates a special commission to investigate claims of prosecutorial misconduct.

The complaint, filed in Albany County Supreme Court, alleges that the law violates the separation of powers between the three branches of state government by giving the Legislature and Court of Appeals power over district attorneys, who are executive officials.