code: def testGumbelSample(self):
      loc = self._dtype(4.0)
      scale = self._dtype(1.0)
      n = int(100e3)
  
      dist = gumbel.Gumbel(
          loc=self.make_tensor(loc),
          scale=self.make_tensor(scale),
          validate_args=True,
      )
  
      samples = dist.sample(n, seed=test_util.test_seed())
      sample_values = self.evaluate(samples)
      self.assertEqual((n,), sample_values.shape)
      self.assertAllClose(
          stats.gumbel_r.mean(loc=loc, scale=scale),
          sample_values.mean(),
          rtol=0.01,
      )
      self.assertAllClose(
          stats.gumbel_r.var(loc=loc, scale=scale),
          sample_values.var(),
          rtol=0.01,
      )
  
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 12 for calling the _GumbelTest obj's underlying member method code with example usage: obj.testGumbelSample() without return types