Section 5. Respondents and costs in certain cases. – When the petition filed relates to the acts or omissions of a judge, court, quasi-judicial agency, tribunal, corporation, board, officer or person, the petitioner shall join, as private respondent or respondents with such public respondent or respondents, the person or persons interested in sustaining the proceedings in the court; and it shall be the duty of such private respondents to appear and defend, both in his or their own behalf and in behalf of the public respondent or respondents affected by the proceedings, and the costs awarded in such proceedings in favor of the petitioner shall be against the private respondents only, and not against the judge, court, quasi-judicial agency, tribunal, corporation, board, officer or person impleaded as public respondent or respondents.
Unless otherwise specifically directed by the court where the petition is pending, the public respondents shall not appear in or file an answer or comment to the petition or any pleading therein. If the case is elevated to a higher court by either party, the public respondents shall be included therein as nominal parties. However, unless otherwise specifically directed by the court, they shall not appear or participate in the proceedings therein. (5a)