Generalizes NestedMap.{Transform, Flatten, Pack} to work on any singleton/list/NestedMap.
Generalizes NestedMap.{Transform, Flatten, Pack} to work on any singleton/list/NestedMap.

PiperOrigin-RevId: 268132075

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo