thereof, whether in a police diary or otherwise, or any part of such statement or record, be used for any purpose, save as hereinafter provided, at any inquiry or trial in respect of any offence under investigation at the time when such statement was made: Provided that when any witness is called for the prosecution in such inquiry or trial whose statement has been reduced into writing as aforesaid, any part of his statement, if duly proved, may be used by the accused, and with the permission of the Court, by the prosecution, to contradict such witness in the manner provided by Section 145 of the Indian Evidence Act, 1872 (1 of 1872); and when any part of such statement is so used, any part thereof may also be used in the re- examination of such witness, but for the Criminal Appeal No. 1637 of 2021 Page 5 of 23purpose only of explaining any matter referred to in his cross-examination. (2) Nothing in this section shall be deemed to apply to any statement falling within the provisions