code: def test_true_mean_confidence_interval_by_dkwm_one_sample(
      self, dtype
  ):
      rng = np.random.RandomState(seed=0)
  
      num_samples = 5000
      # 5000 samples is chosen to be enough to find discrepancies of
      # size 0.1 or more with assurance 1e-6, as confirmed here:
      d = st.min_discrepancy_of_true_means_detectable_by_dkwm(
          num_samples,
          0.0,
          1.0,
          false_fail_rate=1e-6,
          false_pass_rate=1e-6,
      )
      d = self.evaluate(d)
      self.assertLess(d, 0.1)
  
      # Test that the confidence interval computed for the mean includes
      # 0.5 and excludes 0.4 and 0.6.
      samples = rng.uniform(size=num_samples).astype(dtype=dtype)
      (low, high) = st.true_mean_confidence_interval_by_dkwm(
          samples, 0.0, 1.0, error_rate=1e-6
      )
      low, high = self.evaluate([low, high])
      self.assertGreater(low, 0.4)
      self.assertLess(low, 0.5)
      self.assertGreater(high, 0.5)
      self.assertLess(high, 0.6)
  
imports: import functools
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions.internal import statistical_testing
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 13 for calling the StatisticalTestingTest obj's underlying member method code with example usage: obj.test_true_mean_confidence_interval_by_dkwm_one_sample(dtype) without return types