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.array[:] = src_conv.W.array
      dst_bn.avg_mean[:] = src_bn.avg_mean
      dst_bn.avg_var[:] = src_bn.avg_var
      dst_bn.gamma.array[:] = src_scale.W.array
      dst_bn.beta.array[:] = src_scale.bias.b.array
  
imports: import collections
  import os
  import sys
  import warnings
  import numpy
  import chainer
  from chainer.dataset.convert import concat_examples
  from chainer.dataset import download
  from chainer import function
  from chainer.functions.activation.relu import relu
  from chainer.functions.activation.softmax import softmax
  from chainer.functions.array.reshape import reshape
  from chainer.functions.math.sum import sum
  from chainer.functions.pooling.average_pooling_2d import average_pooling_2d
  from chainer.functions.pooling.max_pooling_nd import max_pooling_2d
  from chainer.initializers import constant
  from chainer.initializers import normal
  from chainer import link
  from chainer.links.connection.convolution_2d import Convolution2D
  from chainer.links.connection.linear import Linear
  from chainer.links.normalization.batch_normalization import BatchNormalization
  from chainer.serializers import npz
  from chainer.utils import argument
  from chainer.utils import imgproc
  from chainer.variable import Variable
label_desc: Use image node_id 3 for calling a global function with example usage: _transfer_components(src, dst_conv, dst_bn, bname, cname) without return types