code: def testSlicingInt64Tensor(self):
      with self.cached_session(force_gpu=test.is_gpu_available()):
          a = constant_op.constant([0, 1, 2], dtype=dtypes.int64)
  
          # Slice using int32 Tensor.
          i = constant_op.constant(1, dtype=dtypes.int32)
          slice_t = a[i]
          slice_val = self.evaluate(slice_t)
          self.assertAllEqual(1, slice_val)
          slice_t = a[i : i + 1]
          slice_val = self.evaluate(slice_t)
          self.assertAllEqual([1], slice_val)
  
          # Slice using int32 integer.
          i = np.asarray(1).astype(np.int32)
          slice_t = a[i]
          slice_val = self.evaluate(slice_t)
          self.assertAllEqual(1, slice_val)
          slice_t = a[i : i + 1]
          slice_val = self.evaluate(slice_t)
          self.assertAllEqual([1], slice_val)
  
          slice_t = array_ops.slice(a, [1], [2])
          slice_val = self.evaluate(slice_t)
          self.assertAllEqual([1, 2], slice_val)
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  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 gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the SliceTest obj's underlying member method code with example usage: obj.testSlicingInt64Tensor() without return types