Extract out dumping params into a function. Then it can be used from pdb interactively and in other places if need be.
Extract out dumping params into a function. Then it can be used from pdb
interactively and in other places if need be.

PiperOrigin-RevId: 244438577

tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor