code: def testOutputSizeOutOfBounds(self):
      with self.assertRaisesRegex(
          ValueError, "Negative.* dimension size caused by overflow"
      ):
          with self.session() as sess, self.test_scope():
              tf_in = constant_op.constant(
                  -3.5e35, shape=[10, 19, 22], dtype=dtypes.float32
              )
              block_shape = constant_op.constant(
                  1879048192, shape=[2], dtype=dtypes.int64
              )
              paddings = constant_op.constant(
                  0, shape=[2, 2], dtype=dtypes.int32
              )
              sess.run(
                  array_ops.space_to_batch_nd(
                      tf_in, block_shape, paddings
                  )
              )
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the SpaceToBatchNDErrorHandlingTest obj's underlying member method code with example usage: obj.testOutputSizeOutOfBounds() without return types