code: def testParamsRankLargerThanIndexIndexScalarSlices(self):
      with self.session():
          params = np.array(
              [[-8, -1, -2, -3, -7, -5], [8, 1, 2, 3, 7, 5]],
              dtype=np.float32,
          ).T
          indices = constant_op.constant([4])
          gather_nd_t = array_ops.gather_nd(params, indices)
          gather_nd_val = self.evaluate(gather_nd_t)
          self.assertEqual([2], gather_nd_t.get_shape())
          self.assertAllEqual(np.array([-7, 7]), gather_nd_val)
  
imports: import time
  import numpy
  from tensorflow.python.client import session
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  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 ref_variable
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the GatherNdTest obj's underlying member method code with example usage: obj.testParamsRankLargerThanIndexIndexScalarSlices() without return types