code: def testMVNConjugateLinearUpdateSupportsBatchShape(self):
      strm = test_util.test_seed_stream()
      num_latents = 2
      num_outputs = 4
      batch_shape = [3, 1]
  
      prior_mean = tf.ones([num_latents])
      prior_scale = tf.eye(num_latents) * 5.0
      likelihood_scale = tf.linalg.LinearOperatorLowerTriangular(
          fill_scale_tril.FillScaleTriL().forward(
              tf.random.normal(
                  shape=batch_shape
                  + [int(num_outputs * (num_outputs + 1) / 2)],
                  seed=strm(),
              )
          )
      )
      linear_transformation = (
          tf.random.normal(
              batch_shape + [num_outputs, num_latents], seed=strm()
          )
          * 5.0
      )
      true_latent = tf.random.normal(
          batch_shape + [num_latents], seed=strm()
      )
      observation = tf.linalg.matvec(linear_transformation, true_latent)
      posterior_mean, posterior_prec = ncp.mvn_conjugate_linear_update(
          prior_mean=prior_mean,
          prior_scale=prior_scale,
          linear_transformation=linear_transformation,
          likelihood_scale=likelihood_scale,
          observation=observation,
      )
  
      self._mvn_linear_update_test_helper(
          prior_mean=prior_mean,
          prior_scale=prior_scale,
          linear_transformation=linear_transformation,
          likelihood_scale=likelihood_scale.to_dense(),
          observation=observation,
          candidate_posterior_mean=posterior_mean,
          candidate_posterior_prec=posterior_prec.to_dense(),
          rtol=1e-5,
      )
  
file_path: probability/tensorflow_probability/python/distributions/normal_conjugate_posteriors_test.py
imports: import math
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import fill_scale_tril
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import normal_conjugate_posteriors
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 6 for calling the NormalTest obj's underlying member method code with example usage: obj.testMVNConjugateLinearUpdateSupportsBatchShape() without return types