class_docstr: Type spec for `JointDistributionNamed`.
class_docstr_tok: ["Type","spec","for","`","JointDistributionNamed","`","."]
code: def _to_components(self, obj):
      if self._callable_params:
          components = []
          for d in tf.nest.flatten(obj.model):
              if auto_composite_tensor.is_composite_tensor(d):
                  components.append(d)
      else:
          components = obj.model
      return dict(model=components)
  
imports: import collections
  import functools
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import joint_distribution_sequential
  from tensorflow_probability.python.internal import auto_composite_tensor
  from tensorflow_probability.python.internal import distribution_util
label_desc: Use image node_id 2 for calling the _JointDistributionNamedSpec obj's underlying member method code with example usage: obj._to_components(obj) and returns: dict