code: def testGumbelLogPdf(self):
      batch_size = 6
      loc = np.array([0.0] * batch_size, dtype=self._dtype)
      scale = np.array([3.0] * batch_size, dtype=self._dtype)
      x = np.array([2.0, 3.0, 4.0, 5.0, 6.0, 7.0], dtype=self._dtype)
      dist = gumbel.Gumbel(
          loc=self.make_tensor(loc),
          scale=self.make_tensor(scale),
          validate_args=True,
      )
      log_pdf = dist.log_prob(self.make_tensor(x))
      self.assertAllClose(
          stats.gumbel_r.logpdf(x, loc=loc, scale=scale),
          self.evaluate(log_pdf),
      )
  
      pdf = dist.prob(x)
      self.assertAllClose(
          stats.gumbel_r.pdf(x, loc=loc, scale=scale),
          self.evaluate(pdf),
      )
  
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import gumbel
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 4 for calling the _GumbelTest obj's underlying member method code with example usage: obj.testGumbelLogPdf() without return types