code: def while_with_variable_shape_growing_matrix_rows(n):
      m = tf.constant([[0]])
      i = 0
      while i < n:
          tf.autograph.experimental.set_loop_options(
              shape_invariants=[(m, tf.TensorShape([None, 1]))]
          )
          m = tf.concat((m, [[i]]), 0)
          i += 1
      return m
  
imports: import collections
  import itertools
  from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 3 for calling a global function with example usage: while_with_variable_shape_growing_matrix_rows(n) and returns: m