Read the editor. slice_accuracy filters to one slice, then divides correct-in-slice by total-in-slice. What does it print?
slice_accuracy