code: def testCdf(self, loc, scale, low, high):
      tc = truncated_cauchy.TruncatedCauchy(
          loc, scale, low, high, validate_args=False
      )
      c = cauchy.Cauchy(loc, scale)
  
      x = tf.concat([tf.range(low, high, 0.1), [high]], axis=0)
      self.assertAllClose(
          self.evaluate(
              (c.cdf(x) - c.cdf(low)) / (c.cdf(high) - c.cdf(low))
          ),
          tc.cdf(x),
          rtol=1e-5,
          atol=1e-5,
      )
  
      self.assertAllClose(x, tc.quantile(tc.cdf(x)))
  
      self.assertAllEqual([0.0, 1.0], tc.cdf([low - 0.1, high + 0.1]))
  
file_path: probability/tensorflow_probability/python/distributions/truncated_cauchy_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import cauchy
  from tensorflow_probability.python.distributions import truncated_cauchy
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 5 for calling the TruncatedCauchyTest obj's underlying member method code with example usage: obj.testCdf(loc, scale, low, high) without return types