code: def testAvgPool3dGrad(self):
      with self.assertRaises(
          (errors.ResourceExhaustedError, errors.InvalidArgumentError)
      ):
          for dtype in [dtypes.float32, dtypes.bfloat16]:
              with self.cached_session():
                  orig_input_shape = constant_op.constant(
                      1879048192, shape=[5], dtype=dtypes.int32
                  )
                  grad = constant_op.constant(
                      1, shape=[1, 3, 2, 4, 2], dtype=dtype
                  )
                  t = gen_nn_ops.AvgPool3DGrad(
                      orig_input_shape=orig_input_shape,
                      grad=grad,
                      ksize=[1, 1, 1, 1, 1],
                      strides=[1, 1, 1, 1, 1],
                      padding="SAME",
                      data_format="NDHWC",
                  )
                  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 6 for calling the PoolingTest obj's underlying member method code with example usage: obj.testAvgPool3dGrad() without return types