class_docstr: Type spec for `JointDistributionSequential`.
class_docstr_tok: ["Type","spec","for","`","JointDistributionSequential","`","."]
code: def _to_components(self, obj):
      components = [
          d
          for d in obj.model
          if isinstance(d, tf.__internal__.CompositeTensor)
      ]
      return dict(model=type(obj.model)(components))
  
imports: import collections
  import functools
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import joint_distribution
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.internal import auto_composite_tensor
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 2 for calling the _JointDistributionSequentialSpec obj's underlying member method code with example usage: obj._to_components(obj) and returns: dict