code: def test_while_with_local_var(self, x, type_):
      x = type_(x)
      self.assertFunctionMatchesEager(while_with_local_var, x)
  
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 3 for calling the LoopScopingTest obj's underlying member method code with example usage: obj.test_while_with_local_var(x, type_) without return types