code: def testTensorArrays(self):
      with context.eager_mode():
          ta = tensor_array_ops.TensorArray(
              dtype=dtypes.float32,
              tensor_array_name="foo",
              size=3,
              infer_shape=False,
          )
  
          w0 = ta.write(0, [[4.0, 5.0]])
          w1 = w0.write(1, [[1.0]])
          w2 = w1.write(2, -3.0)
  
          r0 = w2.read(0)
          r1 = w2.read(1)
          r2 = w2.read(2)
  
          d0, d1, d2 = self.evaluate([r0, r1, r2])
          self.assertAllEqual([[4.0, 5.0]], d0)
          self.assertAllEqual([[1.0]], d1)
          self.assertAllEqual(-3.0, d2)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/garbage_collection_test.py
imports: from tensorflow.python.eager import context
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the NoReferenceCycleTests obj's underlying member method code with example usage: obj.testTensorArrays() without return types