If $X$ is a real-valued random variable,
$$\mathbb{E}[X^2] - (\mathbb{E}[X])^2$$
is the variance of $X$.
Suppose now that $X$ is a random variable that takes values on $\mathbb{R}^n$. Consider the quantity
$$f(x) = \mathbb{E}[\|X\|^2] - \|\mathbb{E}[X]\|^2,$$
where $\|x\|$ is the $L_2$ norm of the vector $x$: i.e., $\|x\|^2 = x^\top x = x_1^2 + \dots + x_n^2$, and where $\mathbb{E}[X]$ is the coordinate-wise expected value of $X$, i.e., it is a $n$-vector whose $i$th component is $\mathbb{E}[X_i]$. This looks like some kind of generalization of the variance to higher dimensions, where we replace "squaring a real number" with "the squared L_2 norm of a vector".
Is there some way to understand what the quantity $f(X)$ represents, or to get an intuition for what it is calculating? Is it some generalization of the variance?