code: def _transfer_components(src, dst_conv, dst_bn, bname, cname):
      src_conv = getattr(src, "res{}_branch{}".format(bname, cname))
      src_bn = getattr(src, "bn{}_branch{}".format(bname, cname))
      src_scale = getattr(src, "scale{}_branch{}".format(bname, cname))
      dst_conv.W.data[:] = src_conv.W.data
      dst_bn.avg_mean[:] = src_bn.avg_mean
      dst_bn.avg_var[:] = src_bn.avg_var
      dst_bn.gamma.data[:] = src_scale.W.data
      dst_bn.beta.data[:] = src_scale.bias.b.data
  
file_path: chainercv/examples/resnet/caffe2npz.py
imports: import argparse
  import numpy
  import chainer
  from chainer.links.caffe.caffe_function import CaffeFunction
  from chainercv.links import ResNet101
  from chainercv.links import ResNet152
  from chainercv.links import ResNet50
label_desc: Use image node_id 1 for calling a global function with example usage: _transfer_components(src, dst_conv, dst_bn, bname, cname) without return types