code: def testLogPDFBatch(self):
      seed_stream = test_util.test_seed_stream()
      loc, scale_row, scale_col = self._random_loc_and_scale(
          batch_shape=[3], matrix_shape=[3, 5], seed_stream=seed_stream
      )
      matrix_normal = mnlo.MatrixNormalLinearOperator(
          loc, scale_row, scale_col, validate_args=True
      )
      x = tf.random.normal(
          shape=[3, 3, 5], seed=seed_stream(), dtype=self.dtype
      )
  
      log_pdf = matrix_normal.log_prob(x)
      pdf = matrix_normal.prob(x)
  
      loc_, row_cov_, col_cov_, log_pdf_, pdf_, x_ = self.evaluate(
          [
              loc,
              tf.linalg.matmul(
                  scale_row.to_dense(),
                  scale_row.to_dense(),
                  adjoint_b=True,
              ),
              tf.linalg.matmul(
                  scale_col.to_dense(),
                  scale_col.to_dense(),
                  adjoint_b=True,
              ),
              log_pdf,
              pdf,
              x,
          ]
      )
      self.assertEqual((3,), log_pdf_.shape)
      self.assertEqual((3,), pdf_.shape)
      for i in range(3):
          scipy_matrix_normal = stats.matrix_normal(
              mean=loc_[i], rowcov=row_cov_[i], colcov=col_cov_[i]
          )
  
          expected_log_pdf = scipy_matrix_normal.logpdf(x_[i])
          expected_pdf = scipy_matrix_normal.pdf(x_[i])
          self.assertAllClose(expected_log_pdf, log_pdf_[i], rtol=3e-5)
          self.assertAllClose(expected_pdf, pdf_[i], rtol=3e-5)
  
imports: from absl.testing import parameterized
  import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import shift
  from tensorflow_probability.python.bijectors import softplus
  from tensorflow_probability.python.bijectors import transform_diagonal
  from tensorflow_probability.python.distributions import matrix_normal_linear_operator
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 5 for calling the _MatrixNormalTest obj's underlying member method code with example usage: obj.testLogPDFBatch() without return types