import tensorflow as tf

      # None would fire an exception were it actually executed.
      self.assertTrue(normal._is_scalar_helper(x.get_shape, lambda: None))
      self.assertTrue(normal._is_scalar_helper(lambda: tf.TensorShape(None),
                                               lambda: tf.shape(x)))

      x = tf.placeholder(dtype=tf.int32, shape=[1])
