Section 340(2) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(2)Any person against whom proceedings are instituted in any such Court under section 107, or under Chapter X, Chapter XI, Chapter XII or Chapter XXXVI, or under section 552, may offer himself as a witness in such proceedings.