code: def testUnknownShapeRank(self):
      if tf.executing_eagerly():
          return
      unknown_shape = tf1.placeholder_with_default([2, 2], shape=None)
      known_shape = [2, 2]
  
      with self.assertRaisesRegexp(
          NotImplementedError, "must be statically known."
      ):
          reshape.Reshape(event_shape_out=unknown_shape)
  
      with self.assertRaisesRegexp(
          NotImplementedError, "must be statically known."
      ):
          reshape.Reshape(
              event_shape_out=known_shape, event_shape_in=unknown_shape
          )
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import identity
  from tensorflow_probability.python.bijectors import reshape
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 7 for calling the ReshapeBijectorTestDynamic obj's underlying member method code with example usage: obj.testUnknownShapeRank() without return types