ImageNet results are reported as top-1 and top-5 accuracy: a prediction counts if the true class is among the k highest-scoring classes.
Implement topk_accuracy(logits, targets, ks=(1, 5)) returning a dict {k: accuracy}. Break ties in scores by lower class index (so results are deterministic).