code: def test_non_tensor_state(self):
      # This class is ok to be in a tf.while's state.
      class TestClass(collections.namedtuple("TestClass", ("x"))):
          pass
  
      def f(n):
          tc = TestClass([custom_constant(0)])
          while n > 0:
              tc = TestClass([custom_constant(3)])
              tc.x[0] = tc.x[0] + 1
              n -= 1
          return tc.x[0]
  
      self.assertTransformedResult(f, custom_constant(5), 4)
  
imports: import collections
  from nvidia.dali._autograph.converters import break_statements
  from nvidia.dali._autograph.converters import continue_statements
  from nvidia.dali._autograph.converters import control_flow
  from nvidia.dali._autograph.core import converter_testing
  from nvidia.dali._autograph.utils.all_utils import custom_constant
label_desc: Use image node_id 9 for calling the WhileStatementTest obj's underlying member method code with example usage: obj.test_non_tensor_state() and returns: tc