code: def _testStaticShape(self, input_shape, block_shape, paddings, error):
      block_shape = np.array(block_shape)
      paddings = np.array(paddings)
  
      # Try with sizes known at graph construction time.
      with self.assertRaises(error):
          _ = array_ops.batch_to_space_nd(
              np.zeros(input_shape, np.float32), block_shape, paddings
          )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the BatchToSpaceNDErrorHandlingTest obj's underlying member method code with example usage: obj._testStaticShape(input_shape, block_shape, paddings, error) without return types