194B.a. the public prosecutor may charge the accused person with a lesser offence, withdraw other counts or take any other measure as appropriate depending on the circumstances of the case;
The Criminal Procedure Act, Cap. 20, s 194B(a), as at 15 June 2022
Source: Parliament of Tanzania, https://polis.bunge.go.tz/uploads/bills/acts/1662103298-CHAPTER%2020-THE%20CRIMINAL%20PROCEDURE%20ACT.pdf
https://wanasheria.com/acts/act-cap-20/s-194B.a/