docstr: Runs _ConstructAndTestGradientForConfig for all tests configurations.
code: def _ConstructAndTestGradient(self, pool_func, **kwargs):
      """Runs _ConstructAndTestGradientForConfig for all tests configurations."""
  
      for data_format, use_gpu in GetTestConfigs():
          self._ConstructAndTestGradientForConfig(
              pool_func,
              data_format=data_format,
              data_type=dtypes.float32,
              use_gpu=use_gpu,
              **kwargs,
          )
          if use_gpu and test_util.is_gpu_available(cuda_only=True):
              self._ConstructAndTestGradientForConfig(
                  pool_func,
                  data_format=data_format,
                  data_type=dtypes.bfloat16,
                  use_gpu=use_gpu,
                  **kwargs,
              )
  
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 17 for calling the PoolingTest obj's underlying member method code with example usage: obj._ConstructAndTestGradient(pool_func) without return types