def METHOD_NAME(self, config):
    emb_path = config.get("hyper_parameters.emb_path")
    vocab_size = config.get("hyper_parameters.vocab_size")
    emb_size = config.get("hyper_parameters.emb_size")
    kernel_num = config.get("hyper_parameters.kernel_num")
    conv_filter = config.get("hyper_parameters.conv_filter")
    conv_act = config.get("hyper_parameters.conv_act")
    hidden_size = config.get("hyper_parameters.hidden_size")
    out_size = config.get("hyper_parameters.out_size")
    pool_size = config.get("hyper_parameters.pool_size")
    pool_stride = config.get("hyper_parameters.pool_stride")
    pool_padding = config.get("hyper_parameters.pool_padding")
    pool_type = config.get("hyper_parameters.pool_type")
    hidden_act = config.get("hyper_parameters.hidden_act")
    pyramid_model = net.MatchPyramidLayer(
        emb_path, vocab_size, emb_size, kernel_num, conv_filter, conv_act,
        hidden_size, out_size, pool_size, pool_stride, pool_padding,
        pool_type, hidden_act)
    return pyramid_model