code: def testPadShapeRightWithOnesDynamicShape(self):
      if tf.executing_eagerly():
          return
      # Test partially unknown shape
      x = tf1.placeholder_with_default(np.ones([3], np.float32), [None])
      expanded = util.pad_shape_with_ones(x, 3)
      self.assertAllEqual((1, 1, 1), expanded.shape[1:])
      self.assertAllEqual((3, 1, 1, 1), self.evaluate(expanded).shape)
  
      expanded = util.pad_shape_with_ones(x, 3, start=-2)
      self.assertAllEqual((1, 1, 1), expanded.shape[:-1])
      self.assertAllEqual(self.evaluate(expanded).shape, [1, 1, 1, 3])
      self.assertAllEqual((1, 1, 1, 3), self.evaluate(expanded).shape)
  
      # Test totally unknown shape
      x = tf1.placeholder_with_default(np.ones([3], np.float32), None)
      expanded = util.pad_shape_with_ones(x, 3)
      self.assertAllEqual([3, 1, 1, 1], self.evaluate(expanded).shape)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.gradient import value_and_gradient
  from tensorflow_probability.python.math.psd_kernels.internal import util
label_desc: Use image node_id 4 for calling the UtilTest obj's underlying member method code with example usage: obj.testPadShapeRightWithOnesDynamicShape() without return types