Before a criminal contempt proceeding is heard before the court, notice of the proceedings shall be provided to the district attorney for the district of the court where the proceedings are to be heard and the district attorney for the district of the court where the alleged act of criminal contempt occurred. The district attorney for either district shall be allowed to appear and argue for the imposition of contempt sanctions.