Before the petition of a person rendered infamous or deprived of the rights of citizenship by the judgment of a state court is heard, the district attorney general in whose county the petitioner currently resides and the district attorney general of the county in which the petitioner was convicted shall have twenty (20) days’ notice of the petition in order that, if deemed advisable, each may resist. The United States attorney and the district attorney general in whose district the petitioner currently resides shall be given notice, with the same opportunity to resist, when the petitioner was rendered infamous or deprived of the rights of citizenship by the judgment of a federal court.