code: def test_while_with_variable_py_type(self):
      with self.assertRaisesRegex(
          NotImplementedError,
          re.compile(
              r".*condition of while loop started as non\-Tensor,"
              r" then changed to Tensor.*",
              re.DOTALL,
          ),
      ):
          tf.function(while_with_variable_py_type)()
  
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 1 for calling the ReferenceTest obj's underlying member method code with example usage: obj.test_while_with_variable_py_type() without return types