code: def testIndexOutOfRange(self):
      # Note: because of the way gather_with_default is implemented, these
      # error messages will report values and ranges that are one greater than
      # those that were supplied to gather_with_default.
      with self.assertRaisesRegexp(
          errors.InvalidArgumentError, r"indices\[0\] = .* is not in .*"
      ):
          self.evaluate(
              pointer_ops.gather_with_default(
                  params=[0, 1, 2, 3], indices=[4], default=0
              )
          )
  
      with self.assertRaisesRegexp(
          errors.InvalidArgumentError, r"indices\[0\] = .* is not in .*"
      ):
          self.evaluate(
              pointer_ops.gather_with_default(
                  params=[0, 1, 2, 3], indices=[-2], default=0
              )
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import pointer_ops
label_desc: Use image node_id 12 for calling the GatherWithDefaultOpTest obj's underlying member method code with example usage: obj.testIndexOutOfRange() without return types