Given a vector of logits (raw unnormalized scores), implement Shannon entropy of the corresponding softmax distribution. The entropy is H = -Σ p_i · log(p_i) where p_i = softmax(z_i). The round has four graded parts, each building on the previous one: Part 1 — Basic entropy Implement a straightforward entropy…