code: def test_loop_initializing_invariant_variable_legal(self, n, type_):
      n = type_(n)
      self.assertFunctionMatchesEager(
          loop_initializing_invariant_variable, n
      )
  
imports: import itertools
  from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 16 for calling the NestedControlFlowTest obj's underlying member method code with example usage: obj.test_loop_initializing_invariant_variable_legal(n, type_) without return types