def METHOD_NAME(cfg, rec_val):
    qconfig = qtz.qconfig(
        skip_conv_layers=[0],
        nbit_input=cfg.nbit_input,
        nbit_weight=cfg.nbit_input,
        global_scale=cfg.global_scale,
        dtype_input=cfg.dtype_input,
        dtype_weight=cfg.dtype_input,
        dtype_activation=cfg.dtype_output,
        debug_enabled_ops=None,
    )
    batch_size = 1
    model, params = get_model(cfg.model, batch_size, qconfig)
    val_data, batch_fn = get_val_data(cfg.model, rec_val=rec_val, batch_size=batch_size)
    acc = eval_acc(model, params, val_data, batch_fn)
    assert acc > cfg.expected_acc
    return acc