class_docstr: Test cases for random-number generating operators.
code: def testTruncatedNormalIsNotConstant(self):
      def rng(dtype):
          return random_ops.truncated_normal(shape=[2], dtype=dtype)
  
      # TODO(b/34339814): make this test work with 16 bit float types.
      for dtype in self._random_types() & {np.float32, np.float64}:
          self._testRngIsNotConstant(rng, dtype)
  
imports: import math
  from absl.testing import parameterized
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops.distributions import special_math
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 7 for calling the RandomOpsTest obj's underlying member method code with example usage: obj.testTruncatedNormalIsNotConstant() and returns: random_ops