class_docstr: Docstring.
class_docstr_tok: ["Docstring","."]
code: def __init__(
      self, distribution, convert_to_tensor_fn=tfd.Distribution.sample
  ):
      self._concrete_value = None  # pylint: disable=protected-access
      self._convert_to_tensor_fn = (
          convert_to_tensor_fn  # pylint: disable=protected-access
      )
      self.tensor_distribution = distribution
      super(_TensorCoercible, self).__init__(
          dtype=distribution.dtype,
          reparameterization_type=distribution.reparameterization_type,
          validate_args=distribution.validate_args,
          allow_nan_stats=distribution.allow_nan_stats,
          parameters=distribution.parameters,
      )
  
imports: import six
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import distribution
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import parameter_properties
  from tensorflow_probability.python.util.deferred_tensor import TensorMetaClass
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.trackable import data_structures
label_desc: Use image node_id 1 to create a new _TensorCoercible object from inherited base classes: tfd with example: obj = _TensorCoercible(distribution, convert_to_tensor_fn)