code: def testVarInitializedInFunction(self):
      with self.test_scope():
          v_holder = []
  
          @polymorphic_function.function
          def add_var(x):
              if not v_holder:
                  v = variables.Variable([1.0, 2.0])
                  v_holder.append(v)
                  already_initialized = variables.Variable(3.0)
                  with ops.init_scope():
                      already_initialized.assign(10.0)
                  v_holder.append(already_initialized)
              return v_holder[0] + v_holder[1] + x
  
          self.assertAllClose(
              [13.0, 14.0], add_var(constant_op.constant(2.0))
          )
  
file_path: tensorflow-upstream/tensorflow/python/eager/polymorphic_function/polymorphic_function_xla_test.py
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.python.eager.polymorphic_function import polymorphic_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the FunctionTests obj's underlying member method code with example usage: obj.testVarInitializedInFunction() and returns: unknown