code: def _copyparams(dst, src):
      if isinstance(dst, chainer.Chain):
          for link in dst.children():
              _copyparams(link, src[link.name])
      elif isinstance(dst, chainer.ChainList):
          for i, link in enumerate(dst):
              _copyparams(link, src[i])
      else:
          dst.copyparams(src)
          if isinstance(dst, L.BatchNormalization):
              dst.avg_mean = src.avg_mean
              dst.avg_var = src.avg_var
  
imports: from __future__ import division
  import chainer
  import chainer.functions
  import chainer.links
  from chainercv.links.model.fpn.bbox_head import BboxHead
  from chainercv.links.model.fpn.faster_rcnn import FasterRCNN
  from chainercv.links.model.fpn.fpn import FPN
  from chainercv.links.model.fpn.mask_head import MaskHead
  from chainercv.links.model.fpn.rpn import RPN
  from chainercv.links.model.resnet import ResNet101
  from chainercv.links.model.resnet import ResNet50
  from chainercv import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _copyparams(dst, src) without return types