code: def main():
      parser = argparse.ArgumentParser()
  
      parser.add_argument(
          "model_name",
          choices=(
              "se-resnet50",
              "se-resnet101",
              "se-resnet152",
              "se-resnext50",
              "se-resnext101",
          ),
      )
      parser.add_argument("caffemodel")
      parser.add_argument("output", nargs="?", default=None)
      args = parser.parse_args()
  
      caffemodel = CaffeFunction(args.caffemodel)
      if args.model_name == "se-resnet50":
          model = SEResNet50(pretrained_model=None, n_class=1000)
          model(np.zeros((1, 3, 224, 224), dtype=np.float32))
          _transfer_resnet50(caffemodel, model, _load_class_indices())
      elif args.model_name == "se-resnet101":
          model = SEResNet101(pretrained_model=None, n_class=1000)
          model(np.zeros((1, 3, 224, 224), dtype=np.float32))
          _transfer_resnet101(caffemodel, model, _load_class_indices())
      elif args.model_name == "se-resnet152":
          model = SEResNet152(pretrained_model=None, n_class=1000)
          model(np.zeros((1, 3, 224, 224), dtype=np.float32))
          _transfer_resnet152(caffemodel, model, _load_class_indices())
      elif args.model_name == "se-resnext50":
          model = SEResNeXt50(pretrained_model=None, n_class=1000)
          model(np.zeros((1, 3, 224, 224), dtype=np.float32))
          _transfer_resnet50(caffemodel, model, _load_class_indices())
      elif args.model_name == "se-resnext101":
          model = SEResNeXt101(pretrained_model=None, n_class=1000)
          model(np.zeros((1, 3, 224, 224), dtype=np.float32))
          _transfer_resnet101(caffemodel, model, _load_class_indices())
  
      if args.output is None:
          output = "{}_imagenet_convert.npz".format(args.model_name)
      else:
          output = args.output
      chainer.serializers.save_npz(output, model)
  
imports: import argparse
  import numpy
  import os
  import chainer
  from chainer.links.caffe.caffe_function import CaffeFunction
  from chainercv.links import SEResNet101
  from chainercv.links import SEResNet152
  from chainercv.links import SEResNet50
  from chainercv.links import SEResNeXt101
  from chainercv.links import SEResNeXt50
label_desc: Use image node_id 10 for calling a global function with example usage: main() without return types