code: def testBatesStableTotalCountWarning(self):
      bad = (
          max(bates.BATES_TOTAL_COUNT_STABILITY_LIMITS.values()) + 10.0
      )
      d = bates.Bates(total_count=bad, validate_args=False)
      with self.captureWritesToStream(sys.stderr) as captured:
          self.evaluate(d.prob(1.0))
      self.assertRegex(
          captured.contents(),
          "Bates PDF/CDF is unstable for `total_count` >",
      )
      with self.captureWritesToStream(sys.stderr) as captured:
          self.evaluate(d.cdf(1.0))
      self.assertRegex(
          captured.contents(),
          "Bates PDF/CDF is unstable for `total_count` >",
      )
  
imports: import fractions
  import math
  import sys
  from absl.testing import parameterized
  import hypothesis
  import hypothesis.strategies
  import numpy
  import scipy
  import scipy.integrate
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import bates
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 7 for calling the BatesTest obj's underlying member method code with example usage: obj.testBatesStableTotalCountWarning() without return types