Preparing evidence for a writ petition in criminal cases