Let $(X, T, \mu)$ be an ergodic measure preserving system with finite measure, and $f \in L^{\infty} (X)$.
Define the maximal orbit deviation function $D_f: X \to \mathbb R$ by
$$D_f := \sup_{n, m \geq 0} |T^n f - T^m f|.$$
Question: Is it true that $D_f = \text{esssup} \, f - \text{essinf} \,f$ almost everywhere?
Note: Here $T$ denotes the Koopman operator $T^n f(x) := f(T^n(x))$, and $\text{esssup}, \text{essinf}$ denote the essential supremum and infimum over $X.$