code: def test_dkwm_mean_in_interval_one_sample_assertion(self, dtype):
      rng = np.random.RandomState(seed=0)
      num_samples = 5000
  
      # Test that the test assertion agrees that the mean of the standard
      # uniform distribution is between 0.4 and 0.6.
      samples = rng.uniform(size=num_samples).astype(dtype=dtype)
      self.evaluate(
          st.assert_true_mean_in_interval_by_dkwm(
              samples,
              0.0,
              1.0,
              expected_low=0.4,
              expected_high=0.6,
              false_fail_rate=1e-6,
          )
      )
  
      # Test that the test assertion confirms that the mean of the
      # standard uniform distribution is not between 0.2 and 0.4.
      with self.assertRaisesOpError("true mean greater than expected"):
          self.evaluate(
              st.assert_true_mean_in_interval_by_dkwm(
                  samples,
                  0.0,
                  1.0,
                  expected_low=0.2,
                  expected_high=0.4,
                  false_fail_rate=1e-6,
              )
          )
  
      # Test that the test assertion confirms that the mean of the
      # standard uniform distribution is not between 0.6 and 0.8.
      with self.assertRaisesOpError("true mean smaller than expected"):
          self.evaluate(
              st.assert_true_mean_in_interval_by_dkwm(
                  samples,
                  0.0,
                  1.0,
                  expected_low=0.6,
                  expected_high=0.8,
                  false_fail_rate=1e-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 15 for calling the StatisticalTestingTest obj's underlying member method code with example usage: obj.test_dkwm_mean_in_interval_one_sample_assertion(dtype) without return types