code: def testScalarIndicesWith2DParams(self, params, indices, default):
      indices_t = constant_op.constant(indices, dtype=dtypes.int32)
      params_t = constant_op.constant(params)
      assert isinstance(indices, int)
      gathered = pointer_ops.gather_with_default(
          params_t, indices_t, default
      )
      expected = default if indices == -1 else params[indices]
      self.assertAllEqual(gathered, expected)
      # When there are no -1 indices, check that behavior matches tf.gather.
      if indices != -1:
          self.assertAllEqual(
              gathered, array_ops.gather(params_t, indices_t)
          )
  
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 3 for calling the GatherWithDefaultOpTest obj's underlying member method code with example usage: obj.testScalarIndicesWith2DParams(params, indices, default) without return types