code: def testCDF(self, dist):
      xs = self.evaluate(dist.sample(seed=test_util.test_seed()))
      cdf = dist.cdf(xs)
      self.assertEqual(dist.batch_shape, cdf.shape)
  
      loc, scale, conc = self.evaluate(
          [dist.loc, dist.scale, dist.concentration]
      )
      hp.assume(abs(loc / scale) < 1e7)
      hp.assume((abs(conc) > 1e-12) or (conc == 0.0))
      expected_cdf = sp_stats.genpareto(conc, loc=loc, scale=scale).cdf(
          xs
      )
      actual_cdf = self.evaluate(cdf)
      msg = (
          "Location: {}, scale: {}, concentration: {}, xs: {} "
          "scipy cdf: {}, tfp cdf: {}"
      )
      hp.note(
          msg.format(loc, scale, conc, xs, expected_cdf, actual_cdf)
      )
      self.assertAllClose(expected_cdf, actual_cdf, rtol=5e-5)
  
imports: import hypothesis
  import hypothesis.strategies
  import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import generalized_pareto
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 6 for calling the GeneralizedParetoTest obj's underlying member method code with example usage: obj.testCDF(dist) without return types