class_docstr: Base test class for TensorFlow Lite 2.x model tests.
class_docstr_tok: ["Base","test","class","for","TensorFlow","Lite","2.x","model","tests","."]
code: def _getSimpleModelWithVariables(self):
      class SimpleModelWithOneVariable(autotrackable.AutoTrackable):
          """Basic model with 1 variable."""
  
          def __init__(self):
              super(SimpleModelWithOneVariable, self).__init__()
              self.var = variables.Variable(
                  array_ops.zeros((1, 10), name="var")
              )
  
          @def_function.function
          def assign_add(self, x):
              self.var.assign_add(x)
              return self.var
  
      return SimpleModelWithOneVariable()
  
imports: import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow.lite.python.interpreter import Interpreter
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.trackable import autotrackable
label_desc: Use image node_id 4 for calling the ModelTest obj's underlying member method code with example usage: obj._getSimpleModelWithVariables() and returns: SimpleModelWithOneVariable, self