One can rely on Cr.P.C. 284 and Cr.P.C. 285 onwards, to ensure the absenting prosecution witnesses are properly re-oriented, either to come to Court for Examination and Evidence or be ready to invite the Chief Judicial Magistrate to their home for the exact same purpose. The below sample is only for your guidance. Customize it to your needs and file.
Format-of-284-CrPC-petition-Sample for Issuance of Commission