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):
          # "NCHW" format is currently supported exclusively on CUDA GPUs.
          test_configs += [("NCDHW", True)]
      return test_configs
  
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 1 for calling a global function with example usage: GetTestConfigs() and returns: test_configs