class_docstr: Converts slicing operations to their TF counterpart.
  
  Currently, relying on the default slice operator that Tensor uses is
  insufficient, because TensorArray and tensor lists use dedicated index read
  and write functions.
code: def visit_Subscript(self, node):
      node = self.generic_visit(node)
      s = node.slice
      if isinstance(s, (gast.Tuple, gast.Slice)):
          return node
  
      if not isinstance(node.ctx, gast.Load):
          # Index writes are handled at a higher level, one at which the rvalue is
          # also available.
          return node
  
      dtype = self.get_definition_directive(
          node.value,
          directives.set_element_type,
          "dtype",
          default=templates.replace_as_expression("None"),
      )
  
      template = """
        ag__.get_item(
            target,
            key,
            opts=ag__.GetItemOpts(element_dtype=dtype))
      """
      return templates.replace_as_expression(
          template, target=node.value, key=s, dtype=dtype
      )
  
file_path: tensorflow/tensorflow/python/autograph/converters/slices.py
imports: import gast
  from tensorflow.python.autograph.core import converter
  from tensorflow.python.autograph.lang import directives
  from tensorflow.python.autograph.pyct import templates
label_desc: Use image node_id 3 for calling the SliceTransformer obj's underlying member method code with example usage: obj.visit_Subscript(node) and returns: templates, node, node