The statement of a witness duly recorded under Section 164, if it was made in the presence of the accused and if he had notice of it and was given an opportunity of cross-examining the witness, may, in the discretion of the Court, if such witness is produced and examined, be treated as evidence in the case for all purposes subject to the provis...