What are the provisions of the Criminal Procedure Law on lawyers' right to investigate and collect evidence?

Criminal procedure law:

Article 38 From the date of examination and prosecution by the People's Procuratorate, defense lawyers may consult, extract and copy the case files. Other defenders may also consult, extract and copy the above materials with the permission of the people's court or the people's procuratorate.

Article 39 Defenders who believe that the evidence materials collected by public security organs and people's procuratorates to prove the innocence or minor crimes of criminal suspects and defendants have not been submitted have the right to apply to the people's procuratorates and people's courts for retrieval.

Article 40 A defender shall promptly inform the public security organ and the people's procuratorate of the evidence that the criminal suspect is not at the scene of the crime, has not reached the age of criminal responsibility, and belongs to a mental patient who is not criminally responsible according to law.

Article 41 With the consent of witnesses or other relevant units and individuals, defense lawyers may collect materials related to this case from them, or apply to the people's procuratorate or the people's court to collect and obtain evidence, or apply to the people's court to notify witnesses to testify in court.

With the permission of the people's procuratorate or the people's court, and with the consent of the victim or his close relatives or witnesses provided by the victim, the defense lawyer may collect materials related to the case from them.

Article 42 A defender or other person shall not help a criminal suspect or defendant to conceal, destroy, forge evidence or collude in confession, and shall not threaten or induce witnesses to commit perjury or engage in other acts that hinder judicial proceedings.

Anyone who violates the provisions of the preceding paragraph shall be investigated for legal responsibility according to law. If a defender is suspected of committing a crime, it shall be handled by an investigation organ other than the investigation organ where the defender undertakes the case. If the defender is a lawyer, he shall promptly notify the law firm where he belongs or the lawyers association to which he belongs.