class_docstr: Normal distribution with temperature T.
class_docstr_tok: ["Normal","distribution","with","temperature","T","."]
code: def sample(self, sample_shape=(), seed=None, name="sample"):
      if self.temperature == 0.0:
          if not sample_shape:
              return self.loc
          loc = tf.expand_dims(self.loc, axis=0)
          return tf.tile(loc, (sample_shape[0], 1, 1))
      return super(TemperedNormal, self).sample(
          sample_shape=sample_shape, seed=seed, name=name
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import numpy
  import scipy
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import common_video
  from tensor2tensor.utils import contrib
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
  import tensorflow_probability
label_desc: Use image node_id 2 for calling the TemperedNormal obj's underlying member method code with example usage: obj.sample(sample_shape, seed, name) and returns: super, tf, self