code: def testAvgPool3dGradInvalidKsize(self):
      for data_format, use_gpu in GetTestConfigs():
          with self.cached_session(use_gpu=use_gpu):
              orig_input_shape = constant_op.constant(
                  [1, 1, 1, 1, 1], dtype=dtypes.int32
              )
              grad = [[[[[1.0]]]]]
              with self.assertRaises(errors.InvalidArgumentError):
                  t = gen_nn_ops.AvgPool3DGrad(
                      orig_input_shape=orig_input_shape,
                      grad=grad,
                      ksize=[1, -3, 1, 1, 1],
                      strides=[1, 1, 1, 1, 1],
                      padding="SAME",
                      data_format=data_format,
                  )
                  self.evaluate(t)
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import nn_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the PoolingTest obj's underlying member method code with example usage: obj.testAvgPool3dGradInvalidKsize() without return types