code: def testSparseIndexOutOfBounds(self):
      if test_util.is_gpu_available():
          # On GPU, out-of-bounds indices are simply ignored.
          self.evaluate(
              gen_sparse_ops.sparse_split(
                  split_dim=1,
                  indices=[[0, 0], [1, 10], [-1, 2]],
                  values=[1.0, 2.0, 3.0],
                  shape=[3, 5],
                  num_split=2,
              )
          )
      else:
          # On CPU, out-of-bounds index raises error.
          with self.assertRaisesRegex(
              (ValueError, errors.InvalidArgumentError), "out of bounds"
          ):
              self.evaluate(
                  gen_sparse_ops.sparse_split(
                      split_dim=1,
                      indices=[[0, 0], [1, 10], [-1, 2]],
                      values=[1.0, 2.0, 3.0],
                      shape=[3, 5],
                      num_split=2,
                  )
              )
  
imports: import numpy
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_sparse_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 18 for calling the SparseSplitOpTest obj's underlying member method code with example usage: obj.testSparseIndexOutOfBounds() without return types