(1) If any Court, before which a confession or other statement of an accused person recorded or purporting to be recorded under section 164 or section 364 is tendered or has been received in evidence, finds that any of the provisions of either of such sections have not been complied with by the Magistrate recording the statement, it shall take ...