code: def _testBiasNCHW(self, np_inputs, np_bias, use_gpu):
      np_val = self._npBias(np_inputs, np_bias)
      np_inputs = self._NHWCToNCHW(np_inputs)
      with self.cached_session(use_gpu=use_gpu):
          tf_val = self.evaluate(
              nn_ops.bias_add(np_inputs, np_bias, data_format="NCHW")
          )
      tf_val = self._NCHWToNHWC(tf_val)
      self.assertAllCloseAccordingToType(
          self._AtLeast3d(np_val), tf_val
      )
  
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_impl
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  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 7 for calling the BiasAddTestBase obj's underlying member method code with example usage: obj._testBiasNCHW(np_inputs, np_bias, use_gpu) without return types