Section 199(2) in The Code of Criminal Procedure, 1973
(2)Notwithstanding anything contained in this Code, when any offence falling under Chapter XXI of the Indian Penal Code (45 of 1860) is alleged to have been committed against a person who, at the time of such commission, is the President of India, the Vice-President of India, the Governor of a State, the Administrator of a Union Territory, or a Minister of the Union or of a State, or any other public servant employed in connection with the affairs of the Union or of a State in respect of his conduct in the discharge of his public functions a Court of Session may take cognizance of such offence, without the case being committed to it, upon a complaint in writing made by the Public Prosecutor.