code: def main():
      parser = argparse.ArgumentParser()
      # parser.add_argument('model', choices=list(_model_class.keys()))
      parser.add_argument("task", choices=list(_n_class.keys()))
      parser.add_argument("graph_path")
      parser.add_argument("output")
      args = parser.parse_args()
  
      # currently, xception65 is only implemented.
      # model_name = args.model
      model_name = "xception65"
      model = get_model(model_name, args.task)
      sess = get_session(args.graph_path)
      weightmap = get_weightmap(model_name)
      weightmap = resolve(weightmap)
  
      transfer(model, sess, weightmap, args.task)
      chainer.serializers.save_npz(args.output, model)
  
      sess.close()
  
file_path: chainercv/examples/deeplab/tf2npz.py
imports: import argparse
  import chainer
  from chainercv.datasets import ade20k_semantic_segmentation_label_names
  from chainercv.datasets import cityscapes_semantic_segmentation_label_names
  from chainercv.datasets import voc_semantic_segmentation_label_names
  from chainercv.links import DeepLabV3plusXception65
  import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: main() without return types