code: def testEmptyIndicesLastRankMeansCopyEntireTensor(self):
      with self.session():
          params = np.array(
              [
                  [[-8, -1, -2, -3, -7, -5], [8, 1, 2, 3, 7, 5]],
                  [
                      [-80, -10, -20, -30, -70, -50],
                      [80, 10, 20, 30, 70, 50],
                  ],
              ],
              dtype=np.float32,
          ).T
          params_t = constant_op.constant(params)
          indices = constant_op.constant(
              [[], []], dtype=dtypes.int32
          )  # Size (2, 0)
          gather_nd_t = array_ops.gather_nd(params_t, indices)
          gather_nd_val = self.evaluate(gather_nd_t)
  
      self.assertEqual([2, 6, 2, 2], gather_nd_t.get_shape())
      self.assertAllEqual(
          np.vstack((params[np.newaxis, :], params[np.newaxis, :])),
          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 8 for calling the GatherNdTest obj's underlying member method code with example usage: obj.testEmptyIndicesLastRankMeansCopyEntireTensor() without return types