powers on the High Court. It only saves the inherent power which the Court possessed before the enactment of the Code. It envisages three circumstances under which the inherent jurisdiction may be exercised, namely, (i) to give effect to an order under the Code, (ii) to prevent abuse of the process of court, and (iii) to otherwise secure the ends of justice. It is neither possible nor desirable to lay down any inflexible rule which would govern the exercise of inherent jurisdiction. No legislative enactment dealing with procedure can provide for all cases that may possibly arise. The courts, therefore, have inherent powers apart from express provisions of law which are necessary for proper discharge of functions and duties imposed upon them by law. That is the doctrine which finds expression in the section which merely recognises and preserves inherent powers of the High Courts. All courts, whether civil or criminal possess, in the absence of any express provision, as inherent in their constitution, all such powers as are necessary to do the right and to undo a wrong in the course of administration of justice on the principle "quando lex aliquid alicui concedit, concedere videtur et id sine quo res ipsae esse non potest" (when the law gives a person anything it gives him that without which it cannot exist). While exercising powers under the section, the court does not function as a court of appeal or revision. Inherent jurisdiction under the section though wide has to be exercised sparingly, carefully and with caution and only when such exercise is justified by the tests specifically laid down in the section itself. It is to be exercised ex