class_docstr: The Batch-Reshaping distribution.
  
  This "meta-distribution" reshapes the batch dimensions of another
  distribution.
  
  #### Examples
  
  ```python
  tfd = tfp.distributions
  
  dtype = np.float32
  dims = 2
  new_batch_shape = [1, 2, -1]
  old_batch_shape = [6]
  
  scale = np.ones(old_batch_shape + [dims], dtype)
  mvn = tfd.MultivariateNormalDiag(scale_diag=scale)
  reshape_mvn = tfd.BatchReshape(
      distribution=mvn,
      batch_shape=new_batch_shape,
      validate_args=True)
  
  reshape_mvn.batch_shape
  # ==> [1, 2, 3]
  
  x = reshape_mvn.sample(sample_shape=[4, 5])
  x.shape
  # ==> [4, 5, 1, 2, 3, 2] == sample_shape + new_batch_shape + [dims]
  
  reshape_mvn.log_prob(x).shape
  # ==> [4, 5, 1, 2, 3] == sample_shape + new_batch_shape
  ```
class_docstr_tok: ["The","Batch-Reshaping","distribution",".","This","``","meta-distribution","''","reshapes","the","batch","dimensions","of","another","distribution",".","#","#","#","#","Examples","``","`","python","tfd","=","tfp.distributions","dtype","=","np.float32","dims","=","2","new_batch_shape","=","[","1",",","2",",","-1","]","old_batch_shape","=","[","6","]","scale","=","np.ones","(","old_batch_shape","+","[","dims","]",",","dtype",")","mvn","=","tfd.MultivariateNormalDiag","(","scale_diag=scale",")","reshape_mvn","=","tfd.BatchReshape","(","distribution=mvn",",","batch_shape=new_batch_shape",",","validate_args=True",")","reshape_mvn.batch_shape","#","==",">","[","1",",","2",",","3","]","x","=","reshape_mvn.sample","(","sample_shape=","[","4",",","5","]",")","x.shape","#","==",">","[","4",",","5",",","1",",","2",",","3",",","2","]","==","sample_shape","+","new_batch_shape","+","[","dims","]","reshape_mvn.log_prob","(","x",")",".shape","#","==",">","[","4",",","5",",","1",",","2",",","3","]","==","sample_shape","+","new_batch_shape","``","`"]
code: def _event_shape_tensor(self):
      return self.distribution.event_shape_tensor()
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.distributions import distribution
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import auto_composite_tensor
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import parameter_properties
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow.python.util import nest
label_desc: Use image node_id 9 for calling the _BatchReshape obj's underlying member method code with example usage: obj._event_shape_tensor() and returns: self