code: def testBatchNormBetaGradient(self):
      # Since beta does not exist when scale_after_normalization=False, we only
      # test for scale_after_normalization=True.
      for scale_after_normalization in [True, False]:
          for v in [1, 2]:
              self._testBatchNormGradient(
                  3, "beta", scale_after_normalization, True, v
              )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  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
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_impl
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 12 for calling the BatchNormalizationTest obj's underlying member method code with example usage: obj.testBatchNormBetaGradient() without return types