code: def testBadDefaultShape(self):
      with self.assertRaises((ValueError, errors.InvalidArgumentError)):
          pointer_ops.gather_with_default(
              params=[0, 1, 2, 3], indices=[0], default=[0]
          )
      with self.assertRaises((ValueError, errors.InvalidArgumentError)):
          pointer_ops.gather_with_default(
              params=[[0, 1], [2, 3]], indices=[0], 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 9 for calling the GatherWithDefaultOpTest obj's underlying member method code with example usage: obj.testBadDefaultShape() without return types