code: def testPdfOfSampleMultiDims(self):
      half_student = half_student_t.HalfStudentT(
          df=[7.0, 11.0],
          loc=[[5.0], [6.0]],
          scale=3.0,
          validate_args=True,
      )
      self.assertAllEqual([], half_student.event_shape)
      self.assertAllEqual(
          [], self.evaluate(half_student.event_shape_tensor())
      )
      self.assertAllEqual([2, 2], half_student.batch_shape)
      self.assertAllEqual(
          [2, 2], self.evaluate(half_student.batch_shape_tensor())
      )
      num = 50000
      samples = half_student.sample(num, seed=test_util.test_seed())
      pdfs = half_student.prob(samples)
      sample_vals, pdf_vals = self.evaluate([samples, pdfs])
      self.assertEqual(samples.shape, (num, 2, 2))
      self.assertEqual(pdfs.shape, (num, 2, 2))
      self.assertNear(
          _true_mean(7, 5, 3), np.mean(sample_vals[:, 0, :]), err=0.1
      )
      self.assertNear(
          _true_mean(11, 6, 3), np.mean(sample_vals[:, 1, :]), err=0.1
      )
      self._assertIntegral(
          sample_vals[:, 0, 0], pdf_vals[:, 0, 0], err=0.05
      )
      self._assertIntegral(
          sample_vals[:, 0, 1], pdf_vals[:, 0, 1], err=0.05
      )
      self._assertIntegral(
          sample_vals[:, 1, 0], pdf_vals[:, 1, 0], err=0.05
      )
      self._assertIntegral(
          sample_vals[:, 1, 1], pdf_vals[:, 1, 1], err=0.05
      )
      self.assertNear(
          _true_variance(7, 3), np.var(sample_vals[:, :, 0]), err=1.0
      )
      self.assertNear(
          _true_variance(11, 3), np.var(sample_vals[:, :, 1]), err=1.0
      )
  
imports: import math
  import numpy
  from scipy import stats
  from scipy.special import gamma
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import half_student_t
  from tensorflow_probability.python.distributions.internal import statistical_testing
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 21 for calling the HalfStudentTTest obj's underlying member method code with example usage: obj.testPdfOfSampleMultiDims() without return types