code: def GetTestConfigs():
      """Get all the valid tests configs to run.
  
      Returns:
        all the valid test configs as tuples of data_format and use_gpu.
      """
      test_configs = [("NDHWC", False), ("NDHWC", True)]
      if test.is_gpu_available(cuda_only=True):
          # "NCDHW" format is only supported on CUDA.
          test_configs += [("NCDHW", True)]
      return test_configs
  
imports: import math
  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 errors_impl
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import nn_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util.compat import collections_abc
  from tensorflow.python.eager import context
label_desc: Use image node_id 2 for calling a global function with example usage: GetTestConfigs() and returns: test_configs