code: def _batch_renormalization(
      expander, gamma, beta, x, mean, std, test, r, d
  ):
      mean = mean[expander]
      std = std[expander]
      if test:
          r, d = 1, 0
      y_expect = gamma * ((x - mean) / std * r + d) + beta
      return y_expect
  
imports: import unittest
  import numpy
  import six
  import chainer
  from chainer.backends import cuda
  from chainer import links
  from chainer import testing
  from chainer.testing import attr
label_desc: Use image node_id 1 for calling a global function with example usage: _batch_renormalization(expander, gamma, beta, x, mean, std, test, r, d) and returns: y_expect