Augment rank_assert error message with more information: the bad input and its shape.
Augment rank_assert error message with more information: the bad input and its shape.

PiperOrigin-RevId: 296430053

deepmind/rlax,deepmind/rlax