code: def for_with_variable_shape_growing_matrix(l):
      m = tf.constant([[0, 0], [0, 0]])
      for i in l:
          tf.autograph.experimental.set_loop_options(
              shape_invariants=[(m, tf.TensorShape(None))]
          )
          m = tf.pad(m, [[1, 1], [1, 1]], constant_values=i)
      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 8 for calling a global function with example usage: for_with_variable_shape_growing_matrix(l) and returns: m