code: def while_with_shape_invariant_violation():
      t = tf.constant([1])
      while tf.constant(True):
          tf.autograph.experimental.set_loop_options(
              shape_invariants=((t, tf.TensorShape([1])),)
          )
          t = tf.range(tf.random.uniform((), 2, 3, dtype=tf.int32))
      return t
  
imports: import re
  from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 10 for calling a global function with example usage: while_with_shape_invariant_violation() and returns: t