code: def test_dkwm_cdf_one_sample_assertion(self, dtype):
      rng = np.random.RandomState(seed=0)
      num_samples = 13000
  
      d = st.min_discrepancy_of_true_cdfs_detectable_by_dkwm(
          num_samples, false_fail_rate=1e-6, false_pass_rate=1e-6
      )
      d = self.evaluate(d)
      self.assertLess(d, 0.05)
  
      # Test that the test assertion agrees that the cdf of the standard
      # uniform distribution is the identity.
      samples = rng.uniform(size=num_samples).astype(dtype=dtype)
      self.evaluate(
          st.assert_true_cdf_equal_by_dkwm(
              samples, lambda x: x, false_fail_rate=1e-6
          )
      )
  
      # Test that the test assertion confirms that the cdf of a
      # scaled uniform distribution is not the identity.
      with self.assertRaisesOpError(
          "Empirical CDF outside K-S envelope"
      ):
          samples = rng.uniform(
              low=0.0, high=0.9, size=num_samples
          ).astype(dtype=dtype)
          self.evaluate(
              st.assert_true_cdf_equal_by_dkwm(
                  samples, lambda x: x, false_fail_rate=1e-6
              )
          )
  
      # Test that the test assertion confirms that the cdf of a
      # shifted uniform distribution is not the identity.
      with self.assertRaisesOpError(
          "Empirical CDF outside K-S envelope"
      ):
          samples = rng.uniform(
              low=0.1, high=1.1, size=num_samples
          ).astype(dtype=dtype)
          self.evaluate(
              st.assert_true_cdf_equal_by_dkwm(
                  samples, lambda x: x, 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 3 for calling the StatisticalTestingTest obj's underlying member method code with example usage: obj.test_dkwm_cdf_one_sample_assertion(dtype) without return types