code: def testMultiTensorArray(self):
      with self.session(), self.test_scope():
  
          def fn():
              h1 = tensor_array_ops.TensorArray(
                  size=1, dtype=dtypes.float32, tensor_array_name="foo"
              )
              w1 = h1.write(0, 4.0)
              r1 = w1.read(0)
  
              h2 = tensor_array_ops.TensorArray(
                  size=1, dtype=dtypes.float32, tensor_array_name="bar"
              )
  
              w2 = h2.write(0, 5.0)
              r2 = w2.read(0)
              return r1 + r2
  
          self.assertAllClose(9.0, self.evaluate(xla.compile(fn)[0]))
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.compiler.xla import xla
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import gen_data_flow_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import tensor_array_grad
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 20 for calling the TensorArrayTest obj's underlying member method code with example usage: obj.testMultiTensorArray() and returns: unknown