A defendant may plead nolo contendere only with the consent of the court. Such a plea shall be accepted by the court only after due consideration of the views of the parties and the interests of the public in the effective administration of justice.
SDCL 23A-7-3