code: def init_bn_with_tf_params(
      bn, beta, gamma, moving_mean, moving_variance
  ):
      beta = beta.flatten().astype(chainer.config.dtype)
      bn.beta.initializer = chainer.initializers.Constant(
          beta, dtype=chainer.config.dtype
      )
      bn.beta.initialize(shape=beta.shape)
      gamma = gamma.flatten().astype(chainer.config.dtype)
      bn.gamma.initializer = chainer.initializers.Constant(
          gamma, dtype=chainer.config.dtype
      )
      bn.gamma.initialize(shape=gamma.shape)
      bn.avg_mean = moving_mean.flatten().astype(chainer.config.dtype)
      bn.avg_var = moving_variance.flatten().astype(
          chainer.config.dtype
      )
  
file_path: chainercv/examples/mobilenet/tfckpt2npz.py
imports: import argparse
  import chainer
  import tensorflow
  from chainercv.links import MobileNetV2
label_desc: Use image node_id 3 for calling a global function with example usage: init_bn_with_tf_params(bn, beta, gamma, moving_mean, moving_variance) without return types