def METHOD_NAME(self, args, task, model):
    """set_nets_from_dictionary.
    the custom model the user wrote should have
    model.dict_net_module_na2arg_na with something like
    {"net1":"name1", "net2":"name2"}
    python main_out.py –te_d=caltech –task=mini_vlcs –debug –bs=3
    –apath=examples/algos/demo_custom_model.py
    –aname=custom –nname_argna2val net1 –nname_argna2val alexnet
    """
    for key_module_na, val_arg_na in \
            model.dict_net_module_na2arg_na.items():
        #
        if args.nname_argna2val is None and \
                args.npath_argna2val is None:
            raise RuntimeError("either specify nname_argna2val or \
                                npath_argna2val")
        self._set_args(args, val_arg_na, "nname", "nname_argna2val")
        self._set_args(args, val_arg_na, "npath", "npath_argna2val")
        #
        builder = FeatExtractNNBuilderChainNodeGetter(
            args, arg_name_of_net="nname"+val_arg_na,
            arg_path_of_net="npath"+val_arg_na)()
        net = builder.init_business(
            flag_pretrain=True, dim_out=task.dim_y,
            remove_last_layer=False, args=args,
            i_c=task.isize.i_c, i_h=task.isize.i_h, i_w=task.isize.i_w)
        model.add_module("%s" % (key_module_na), net)