code: def testPoolNC(self):
      if test.is_gpu_available(cuda_only=True):
          # "NC*" format is currently only supported on CUDA.
          with self.session():
              for padding in ["SAME", "VALID"]:
                  self._test(
                      input_shape=[2, 2, 9],
                      window_shape=[2],
                      padding=padding,
                      pooling_type="MAX",
                      strides=[1],
                      dilation_rate=[1],
                      data_format="NCW",
                  )
                  self._test(
                      input_shape=[2, 2, 9],
                      window_shape=[2],
                      padding=padding,
                      pooling_type="MAX",
                      strides=[2],
                      dilation_rate=[1],
                      data_format="NCW",
                  )
                  self._test(
                      input_shape=[2, 2, 7, 9],
                      window_shape=[2, 2],
                      padding=padding,
                      pooling_type="MAX",
                      strides=[1, 2],
                      dilation_rate=[1, 1],
                      data_format="NCHW",
                  )
                  self._test(
                      input_shape=[2, 2, 7, 5, 3],
                      window_shape=[2, 2, 2],
                      padding=padding,
                      pooling_type="MAX",
                      strides=[1, 2, 1],
                      dilation_rate=[1, 1, 1],
                      data_format="NCDHW",
                  )
              self._test(
                  input_shape=[2, 2, 7, 9],
                  window_shape=[2, 2],
                  padding="VALID",
                  pooling_type="MAX",
                  strides=[1, 1],
                  dilation_rate=[2, 2],
                  data_format="NCHW",
              )
  
imports: import math
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gradient_checker
  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.testPoolNC() without return types