def METHOD_NAME(doctype: str, name: str, assign_to: str):
	if assign_to != frappe.session.user:
		frappe.throw(_("Only the assignee can complete this to-do."))
	return set_status(doctype, name, "", assign_to, status="Closed")