Section 251A(9) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(9)If the accused, after he has entered upon his defence, applies to the Magistrate to issue any process for compelling the attendance of any witness for the purpose of examination or cross-examination, or the production of any document or other thing, the Magistrate shall issue such process unless he considers that such application should be refused on the ground that it is made for the purpose of vexation or delay or for defeating the ends of justice. Such ground shall be recorded by him in writing :Provided that when the accused as cross-examined or had the opportunity of cross-examining any witness after the charge is framed, the attendance of such witness shall not be compelled under this section unless the Magistrate is satisfied that it is necessary for the purposes of justice.