code: def _disabledTestBadIndicesGPU(self):
      # TODO disabled due to different behavior on GPU and CPU
      # On GPU the bad indices do not raise error but fetch 0 values
      if not test.is_gpu_available():
          return
      with self.session():
          params = [[0, 1, 2], [3, 4, 5]]
          with self.assertRaisesOpError(
              r"indices\[0,0\] = 7 is not in \[0, 2\)"
          ):
              array_ops.gather(params, [[7]], axis=0).eval()
          with self.assertRaisesOpError(
              r"indices\[0,0\] = 7 is not in \[0, 3\)"
          ):
              array_ops.gather(params, [[7]], axis=1).eval()
  
imports: from absl.testing import parameterized
  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
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  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 13 for calling the GatherTest obj's underlying member method code with example usage: obj._disabledTestBadIndicesGPU() without return types