def METHOD_NAME(cfg, size, num_classes, config):
    ssd_vgg = SSD_VGG(cfg, size, num_classes, batch_norm=config.get("batchnorm", False))
    if config.basenet and (config.resuming_checkpoint_path is None) and (config.weights is None):
        print("Loading base network...")
        #
        # ** WARNING: torch.load functionality uses Python's pickling facilities that
        # may be used to perform arbitrary code execution during unpickling. Only load the data you
        # trust.
        #
        basenet_weights = torch.load(config.basenet)
        new_weights = {}
        for wn, wv in basenet_weights.items():
            wn = wn.replace("features.", "")
            new_weights[wn] = wv
        load_state(ssd_vgg.basenet, new_weights, is_resume=False)
    return ssd_vgg