code: def testBadIndicesWithSlicesCPU(self):
      with self.session(use_gpu=False):
          params = [[0, 1, 2]]
          indices = [[[0], [0], [1]]]  # Make this one higher rank
          gather_nd = array_ops.gather_nd(params, indices)
          with self.assertRaisesOpError(
              r"indices\[0,2\] = \[1\] does not index into param shape \[1,3\]"
          ):
              self.evaluate(gather_nd)
  
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 16 for calling the GatherNdTest obj's underlying member method code with example usage: obj.testBadIndicesWithSlicesCPU() without return types