code: def testSampleEmpiricalCDF(self):
      num_samples = 300000
      dist = half_student_t.HalfStudentT(
          df=5.0, loc=10.0, scale=2.0, validate_args=True
      )
      samples = dist.sample(num_samples, seed=test_util.test_seed())
  
      check_cdf_agrees = st.assert_true_cdf_equal_by_dkwm(
          samples, dist.cdf, false_fail_rate=1e-6
      )
      check_enough_power = assert_util.assert_less(
          st.min_discrepancy_of_true_cdfs_detectable_by_dkwm(
              num_samples, false_fail_rate=1e-6, false_pass_rate=1e-6
          ),
          0.01,
      )
      self.evaluate([check_cdf_agrees, check_enough_power])
  
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 26 for calling the HalfStudentTTest obj's underlying member method code with example usage: obj.testSampleEmpiricalCDF() without return types