code: def testUniformPDFWithScalarEndpoint(self):
      a = tf.constant([0.0, 5.0])
      b = tf.constant(10.0)
      dist = uniform.Uniform(low=a, high=b, validate_args=True)
  
      x = np.array([0.0, 8.0], dtype=np.float32)
      expected_pdf = np.array([1.0 / (10.0 - 0.0), 1.0 / (10.0 - 5.0)])
  
      pdf = dist.prob(x)
      self.assertAllClose(expected_pdf, self.evaluate(pdf))
  
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.distributions import uniform
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 4 for calling the UniformTest obj's underlying member method code with example usage: obj.testUniformPDFWithScalarEndpoint() without return types