code: def main():
      parser = argparse.ArgumentParser()
      parser.add_argument("caffemodel")
      parser.add_argument("output")
      args = parser.parse_args()
  
      proto_path = "weights/pspnet101_cityscapes_713.prototxt"
      n_class = 19
      input_size = (713, 713)
  
      model = PSPNetResNet101(n_class, None, input_size)
      model(
          np.random.uniform(size=(1, 3) + input_size).astype(np.float32)
      )
  
      caffe_param = caffe_pb2.NetParameter()
      caffe_param.MergeFromString(open(args.caffemodel, "rb").read())
      caffe_net = text_format.Merge(
          open(proto_path).read(), caffe_pb2.NetParameter()
      )
  
      transfer(model, caffe_param, caffe_net)
      serializers.save_npz(args.output, model)
  
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 8 for calling a global function with example usage: main() without return types