The Bhartiya Nyaya Sanhita (BNSS) mandates a forensic team to visit the crime scenes to collect evidence for offenses punishable with imprisonment for at least five years. This ensures proper scientific investigation and collection of evidence for serious crimes.