code: def test_index_access(self):
      def f(l):
          directives.set_element_type(l, dtypes.int32)
          return l[1]
  
      tr = self.transform(f, (directives_converter, slices))
  
      tl = list_ops.tensor_list_from_tensor(
          [1, 2],
          element_shape=constant_op.constant([], dtype=dtypes.int32),
      )
      y = tr(tl)
      self.assertEqual(2, self.evaluate(y))
  
file_path: tensorflow-upstream/tensorflow/python/autograph/converters/slices_test.py
imports: from tensorflow.python.autograph.converters import directives
  from tensorflow.python.autograph.converters import slices
  from tensorflow.python.autograph.core import converter_testing
  from tensorflow.python.autograph.lang import directives
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import list_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the SliceTest obj's underlying member method code with example usage: obj.test_index_access() and returns: l