code: def testTruncatedNormal(self):
      # Fully known shape.
      rnd1 = random_ops.truncated_normal([1, 2, 3])
      self.assertEqual([1, 2, 3], rnd1.get_shape())
      # Partially known shape.
      rnd2 = random_ops.truncated_normal(
          array_ops.placeholder(dtypes.int32, shape=(3,))
      )
      self.assertEqual([None, None, None], rnd2.get_shape().as_list())
      # Unknown shape.
      rnd3 = random_ops.truncated_normal(
          array_ops.placeholder(dtypes.int32)
      )
      self.assertIs(None, rnd3.get_shape().ndims)
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_random_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the RandomShapeTest obj's underlying member method code with example usage: obj.testTruncatedNormal() without return types