code: def save_model(
      MainModel, network_filepath, weight_filepath, dump_filepath
  ):
      dump_net = dump_filepath + ".prototxt"
      dump_weight = dump_filepath + ".caffemodel"
      dump_net = str(dump_net)
      dump_weight = str(dump_weight)
      MainModel.make_net(dump_net)
      MainModel.gen_weight(weight_filepath, dump_weight, dump_net)
      print(
          "Caffe model files are saved as [{}] and [{}], generated by [{}.py] and [{}].".format(
              dump_net, dump_weight, network_filepath, weight_filepath
          )
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: save_model(MainModel, network_filepath, weight_filepath, dump_filepath) without return types