class_docstr: Mixin adding a nicer `__repr__` for `namedtuple`s.
class_docstr_tok: ["Mixin","adding","a","nicer","`","__repr__","`","for","`","namedtuple","`","s","."]
code: def __repr__(self):
      return "{}(\n{}\n)".format(
          type(self).__name__,
          ",\n".join(
              "  {}={}".format(k, repr(v).replace("\n", "\n    "))
              for (k, v) in self._asdict().items()
          ),
      )
  
imports: import warnings
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import broadcast_util
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.math.gradient import value_and_gradient
  from tensorflow.python.util import deprecation
label_desc: Use image node_id 1 for calling the PrettyNamedTupleMixin obj's underlying member method code with example usage: obj.__repr__() and returns: str