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 _getMultiFunctionModel(self):
      class BasicModel(autotrackable.AutoTrackable):
          """Basic model with multiple functions."""
  
          def __init__(self):
              self.y = None
              self.z = None
  
          @def_function.function
          def add(self, x):
              if self.y is None:
                  self.y = variables.Variable(2.0)
              return x + self.y
  
          @def_function.function
          def sub(self, x):
              if self.z is None:
                  self.z = variables.Variable(3.0)
              return x - self.z
  
          @def_function.function
          def mul_add(self, x, y):
              if self.z is None:
                  self.z = variables.Variable(3.0)
              return x * self.z + y
  
      return BasicModel()
  
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 5 for calling the ModelTest obj's underlying member method code with example usage: obj._getMultiFunctionModel() and returns: BasicModel, unknown, unknown, unknown