code: def copy_resblock(layer, config, block):
      if "/" in layer.name:
          layer.name = layer.name.split("/")[0]
      i = int(layer.name.split("_")[1]) - 1
      if i == 0:
          name = "a"
      else:
          name = "b{}".format(i)
      setattr(
          block,
          name,
          copy_bottleneck(layer, config, getattr(block, name)),
      )
      return block
  
file_path: chainercv/examples/pspnet/caffe2npz.py
imports: import argparse
  from google.protobuf import text_format
  import numpy
  import re
  from chainer import serializers
  from chainercv.experimental.links import PSPNetResNet101
  import caffe_pb2
label_desc: Use image node_id 5 for calling a global function with example usage: copy_resblock(layer, config, block) and returns: block