def METHOD_NAME(shape, weight_shape, err_msg):
    """Check Fully Connected error messages."""
    np.random.seed(0)
    dtype = "uint8"
    model, _ = _get_model(
        shape,
        weight_shape,
        0,
        1,
        0,
        1,
        0,
        1,
        dtype,
    )
    model = tei.make_ethosn_composite(model, "ethos-n.qnn_fc")
    mod = tei.make_ethosn_partition(model)
    tei.test_error(mod, {}, err_msg)