code: def batch_norm_op(tensor, mean, variance, beta, gamma, scale):
      """Fused kernel for batch normalization."""
      # _batch_norm_with_global_normalization is deprecated in v9
      test_util.set_producer_version(ops.get_default_graph(), 8)
      # pylint: disable=protected-access
      return gen_nn_ops._batch_norm_with_global_normalization(
          tensor, mean, variance, beta, gamma, 0.001, scale
      )
  
imports: import argparse
  import sys
  import time
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  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 gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_impl
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  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: batch_norm_op(tensor, mean, variance, beta, gamma, scale) and returns: gen_nn_ops