Where any contempt is committed in the face of a Subordinate Court, the Court may, at any time before rising on the same day, take cognisance of the offence, record the facts constituting the offence and the statement, if any, made by the offender and sentence the offender to a fine of $1,000 and imprisonment for 6 months:
Provided that the Court may, in its discretion, discharge the offender or remit the punishment on his making an apology to the satisfaction of the
Court:
And provided further that in any case where the contempt is punishable as an offence under section 175, 178, 179, 180 or 228 of the Penal Code
(Chapter 22), the Court may, in lieu of taking cognisance of the offence, authorise a prosecution.