Section 364(2) in Bharatiya Nagarik Suraksha Sanhita, 2023
(2)When more accused persons than one are being tried together, and the Magistrate considers it necessary to proceed under sub-section (1), in regard to any of such accused, he shall forward all the accused, who are in his opinion guilty, to the Chief Judicial Magistrate.